Class MHTClickTrainAlgorithm
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.MHTClickTrainAlgorithm
- All Implemented Interfaces:
ClickTrainAlgorithm
,PamSettings
,SettingsNameProvider
A click train algorithm based on a multi-hypothesis tracker (MHT) which groups data based
on a minimisation function.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A single MHT click train algorithm for a particular channel or channel group. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the MHTChi2 manager.Get the click train controls which owns the algorithmGet the class which handles GUI components for the click train detector algorithmGet logging class for click algorithm specific information.Get a list of the current MHT algortihmsgetName()
The name of the algorithmGet general MHT params.long
static TrackDataUnits
getTrackDataUnits
(MHTKernel<PamDataUnit> mhtKernel, BitSet bitSet, int kcount) Get the track data units for a track possibility bitset.void
grabDoneTrains
(MHTClickTrainAlgorithm.MHTAlgorithm mhtAlgortihm) Grabs any click trains which are finished and saves them as the appropriate PAM data unit.void
grabDoneTrains
(MHTKernel mhtKernal) Grabs any click trains which are finished and saves them as the appropriate PAM data unit.void
newDataUnit
(PamDataUnit dataUnit) Adds a data unit to the click train detector algorithmboolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
Set the parameters for the MHT algorithm.void
Update the algorithm
-
Field Details
-
MHT_NAME
- See Also:
-
-
Constructor Details
-
MHTClickTrainAlgorithm
-
-
Method Details
-
getName
Description copied from interface:ClickTrainAlgorithm
The name of the algorithm- Specified by:
getName
in interfaceClickTrainAlgorithm
- Returns:
- the name of the algorithm
-
newDataUnit
Description copied from interface:ClickTrainAlgorithm
Adds a data unit to the click train detector algorithm- Specified by:
newDataUnit
in interfaceClickTrainAlgorithm
- Parameters:
dataUnit
- - data unit to be considered for click train detection.
-
getTrackDataUnits
public static TrackDataUnits getTrackDataUnits(MHTKernel<PamDataUnit> mhtKernel, BitSet bitSet, int kcount) Get the track data units for a track possibility bitset.- Parameters:
mhtKernel
- - the MHTKernelbitSet
- - the bit set.kcount
- - the kcount.- Returns:
- the track data units.
-
grabDoneTrains
Grabs any click trains which are finished and saves them as the appropriate PAM data unit. Also clear the MHTKernel tracks.- Parameters:
mhtAlgorithm
- - the MHT algorithm to grab finished clicks trains from
-
grabDoneTrains
Grabs any click trains which are finished and saves them as the appropriate PAM data unit. Also clear the MHTKernel tracks.- Parameters:
mhtKernal
- - the MHT kernel to grab finished clicks trains from
-
getClickTrainGraphics
Description copied from interface:ClickTrainAlgorithm
Get the class which handles GUI components for the click train detector algorithm- Specified by:
getClickTrainGraphics
in interfaceClickTrainAlgorithm
- Returns:
- the click train graphics.
-
update
Update the algorithm- Specified by:
update
in interfaceClickTrainAlgorithm
- Parameters:
flag
- - flag indicating the update type.info
- - an object to add to update
-
getParams
Get general MHT params.- Returns:
- the MHT params.
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-
setParams
Set the parameters for the MHT algorithm.- Parameters:
mhtParams2
- - the MHTParams to set as the new parameters.
-
getChi2ProviderManager
Get the MHTChi2 manager.- Returns:
-
getMHTAlgorithms
Get a list of the current MHT algortihms- Returns:
- a list of the current MHT algorithms.
-
getClickTrainControl
Get the click train controls which owns the algorithm- Returns:
- the click train control.
-
getCTAlgorithmInfoLogging
Description copied from interface:ClickTrainAlgorithm
Get logging class for click algorithm specific information.- Specified by:
getCTAlgorithmInfoLogging
in interfaceClickTrainAlgorithm
- Returns:
- the ct algorithm logging.
-