public class TargetMotionLocaliser<T extends PamDetection> extends AbstractLocaliser
Modifier and Type | Class and Description |
---|---|
static class |
TargetMotionLocaliser.Interractive |
Modifier and Type | Field and Description |
---|---|
int |
currentEventIndex
Database index of current event.
|
Constructor and Description |
---|
TargetMotionLocaliser(TargetMotionControl targetMotionControl,
PamDataBlock<T> dataBlock) |
Modifier and Type | Method and Description |
---|---|
int |
addDetectorMenuItems(java.awt.Frame parentFrame,
javax.swing.JMenu menu) |
void |
addResults(TargetMotionResult[] newResults) |
void |
clearResults() |
TargetMotionModel |
findModelByName(java.lang.String modelName,
boolean shortLength)
Find a model by it's name.
|
int |
getBestResultIndex() |
int |
getCurrentEventIndex() |
int |
getCurrentRunState() |
java.lang.String |
getLocaliserName() |
java.util.ArrayList<TargetMotionModel> |
getModels() |
java.util.ArrayList<TargetMotionResult> |
getResults() |
TargetMotionControl |
getTargetMotionControl() |
boolean |
localiseDataUnit(PamDataUnit dataUnit)
Localise a data unit.
|
void |
localiseEventList(java.util.ArrayList<TargetMotionInformation> targetMotionInfo,
TargetMotionModel[] modelList,
boolean isSupervised) |
void |
moveToTargetMotionTab() |
TargetMotionResult[] |
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) |
getDataBlock, isRunOnAdd, isRunOnUpdate, setRunOnAdd, setRunOnUpdate
public int currentEventIndex
Use index instead of reference since the data are often reloaded, so references become out of date.
public TargetMotionLocaliser(TargetMotionControl targetMotionControl, PamDataBlock<T> dataBlock)
public java.lang.String getLocaliserName()
getLocaliserName
in class AbstractLocaliser
public int addDetectorMenuItems(java.awt.Frame parentFrame, javax.swing.JMenu menu)
public void moveToTargetMotionTab()
public void clearResults()
public java.util.ArrayList<TargetMotionResult> getResults()
public void addResults(TargetMotionResult[] newResults)
public int getBestResultIndex()
public void setBestResultIndex(int bestResultIndex)
bestResultIndex
- the bestResultIndex to setpublic java.util.ArrayList<TargetMotionModel> getModels()
public TargetMotionModel findModelByName(java.lang.String modelName, boolean shortLength)
modelName
- model name to search for.shortLength
- allow short model names (if truncated in the database)public void localiseEventList(java.util.ArrayList<TargetMotionInformation> targetMotionInfo, TargetMotionModel[] modelList, boolean isSupervised)
public int getCurrentEventIndex()
public TargetMotionResult[] runModels(TargetMotionInformation targetMotionInformation, TargetMotionModel[] modelList)
public int selectBestResult(TargetMotionResult[] results)
results
- array of results to compare.public TargetMotionControl getTargetMotionControl()
public int getCurrentRunState()
public boolean localiseDataUnit(PamDataUnit dataUnit)
AbstractLocaliser
Localisation results will be added to the data unit itself in the AbstractLocalisation field.
localiseDataUnit
in class AbstractLocaliser
dataUnit
- data unit to localise