Package targetMotionModule
Class TargetMotionLocaliser<T extends PamDataUnit>
java.lang.Object
Localiser.algorithms.timeDelayLocalisers.bearingLoc.AbstractLocaliser
targetMotionModule.TargetMotionLocaliser<T>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTargetMotionLocaliser
(TargetMotionControl targetMotionControl, PamDataBlock<T> dataBlock) -
Method Summary
Modifier and TypeMethodDescriptionint
addDetectorMenuItems
(Frame parentFrame, JMenu menu) void
addResults
(TargetMotionResult[] newResults) void
findModelByName
(String modelName, boolean shortLength) Find a model by it's name.int
int
int
boolean
localiseDataUnit
(PamDataUnit dataUnit) Localise a data unit.void
localiseEventList
(ArrayList<TargetMotionInformation> targetMotionInfo, TargetMotionModel[] modelList, boolean isSupervised) void
runModels
(TargetMotionInformation targetMotionInformation, TargetMotionModel[] modelList) int
selectBestResult
(TargetMotionResult[] results) Work out which is the best result based on Chi2 and AIC.void
setBestResultIndex
(int bestResultIndex) Methods inherited from class Localiser.algorithms.timeDelayLocalisers.bearingLoc.AbstractLocaliser
getDataBlock, isRunOnAdd, isRunOnUpdate, setRunOnAdd, setRunOnUpdate
-
Field Details
-
currentEventIndex
public int currentEventIndexDatabase index of current event. Not the same as the eventListIndexUse index instead of reference since the data are often reloaded, so references become out of date.
-
-
Constructor Details
-
TargetMotionLocaliser
-
-
Method Details
-
getLocaliserName
- Specified by:
getLocaliserName
in classAbstractLocaliser
- Returns:
- a name for the localiser for use in dialogs, menus, etc.
-
addDetectorMenuItems
-
moveToTargetMotionTab
public void moveToTargetMotionTab() -
clearResults
public void clearResults() -
getResults
-
addResults
-
getBestResultIndex
public int getBestResultIndex()- Returns:
- the bestResultIndex
-
setBestResultIndex
public void setBestResultIndex(int bestResultIndex) - Parameters:
bestResultIndex
- the bestResultIndex to set
-
getModels
-
findModelByName
Find a model by it's name. If shortLength is true, then it will accept a match in which the modelName is only partly included in the full model name. This is required since the names in the database may have been truncated and are therefore incomplete.- Parameters:
modelName
- model name to search for.shortLength
- allow short model names (if truncated in the database)- Returns:
- reference to a TM model, or null.
-
localiseEventList
public void localiseEventList(ArrayList<TargetMotionInformation> targetMotionInfo, TargetMotionModel[] modelList, boolean isSupervised) -
getCurrentEventIndex
public int getCurrentEventIndex() -
runModels
public TargetMotionResult[] runModels(TargetMotionInformation targetMotionInformation, TargetMotionModel[] modelList) -
selectBestResult
Work out which is the best result based on Chi2 and AIC.- Parameters:
results
- array of results to compare.- Returns:
- index of best result, or -1 if there are no results or none with AIC or Chi2 values.
-
getTargetMotionControl
-
getCurrentRunState
public int getCurrentRunState() -
localiseDataUnit
Description copied from class:AbstractLocaliser
Localise a data unit.Localisation results will be added to the data unit itself in the AbstractLocalisation field.
- Specified by:
localiseDataUnit
in classAbstractLocaliser
- Parameters:
dataUnit
- data unit to localise- Returns:
- true if localisation was successful.
-