Package targetMotionOld.algorithms
Class LeastSquaresNew<T extends GroupDetection>
java.lang.Object
targetMotionOld.algorithms.AbstractTargetMotionModel<T>
targetMotionOld.algorithms.LeastSquaresNew<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
LocaliserModel<T>
,TargetMotionModel<T>
Implmentation of the least squares locaiser.
- Author:
- Jamie Macaulay
-
Field Summary
Modifier and TypeFieldDescriptionThe localiser. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the settings pane for the localiser.The type of localisation information the localiser can accept.getName()
Get the name which describes the localiser.boolean
True if the model has parameters to set.void
notifyModelProgress
(double progress) This should be called whenever the localiser has finished processing and, if the localisation process is long, then updates progress.Deprecated.runModel
(T pamDetection, DetectionGroupOptions detectionGroupOptions, boolean run) Run the localisation model.Methods inherited from class targetMotionOld.algorithms.AbstractTargetMotionModel
getPlotSymbol
-
Field Details
-
detectionGroupLocaliser
The localiser.
-
-
Constructor Details
-
LeastSquaresNew
-
-
Method Details
-
getName
Description copied from interface:LocaliserModel
Get the name which describes the localiser.- Returns:
- the name of the localiser.
-
getToolTipText
-
runModel
public GroupLocalisation runModel(T pamDetection, DetectionGroupOptions detectionGroupOptions, boolean run) Description copied from interface:LocaliserModel
Run the localisation model. Once completed the results are added to the AbstractLoclaisation class of the input PamDataUnit. Note that algorithms may run on a separate thread. Once processing has finished the notifyModelFinished function is called with a progress of 1;.- Parameters:
pamDetection
- the pamDataUnit. This can be a super unit if multiple detections are required.run
- automatically add the localisation result to the data unit, replacing it's current localisation info.
-
getLocContents
Description copied from interface:LocaliserModel
The type of localisation information the localiser can accept. e.g. bearings, time delays etc. The types are defined in the AbstractLocalisation class.- Returns:
- integer bitmap of the type of localisation information the localiser can use.
-
getAlgorithmSettingsPane
Description copied from interface:LocaliserModel
Get the settings pane for the localiser. Allows users to change localiser settings.- Returns:
- the settings pane for the localiser.
-
hasParams
public boolean hasParams()Description copied from interface:LocaliserModel
True if the model has parameters to set. If has the localiser has a settings pane it will have parameters. This generally puts an extra button onto a display panel. -
notifyModelProgress
public void notifyModelProgress(double progress) Description copied from interface:LocaliserModel
This should be called whenever the localiser has finished processing and, if the localisation process is long, then updates progress. -
runModel
Deprecated.
-