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
Nested ClassesModifier and TypeClassDescriptionclassA single MHT click train algorithm for a particular channel or channel group. - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
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.longstatic TrackDataUnitsgetTrackDataUnits(MHTKernel<PamDataUnit> mhtKernel, BitSet bitSet, int kcount) Get the track data units for a track possibility bitset.voidgrabDoneTrains(MHTClickTrainAlgorithm.MHTAlgorithm mhtAlgortihm) Grabs any click trains which are finished and saves them as the appropriate PAM data unit.voidgrabDoneTrains(MHTKernel mhtKernal) Grabs any click trains which are finished and saves them as the appropriate PAM data unit.voidnewDataUnit(PamDataUnit dataUnit) Adds a data unit to the click train detector algorithmbooleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidSet the parameters for the MHT algorithm.voidUpdate the algorithm 
- 
Field Details
- 
MHT_NAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
MHTClickTrainAlgorithm
 
 - 
 - 
Method Details
- 
getName
Description copied from interface:ClickTrainAlgorithmThe name of the algorithm- Specified by:
 getNamein interfaceClickTrainAlgorithm- Returns:
 - the name of the algorithm
 
 - 
newDataUnit
Description copied from interface:ClickTrainAlgorithmAdds a data unit to the click train detector algorithm- Specified by:
 newDataUnitin 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:ClickTrainAlgorithmGet the class which handles GUI components for the click train detector algorithm- Specified by:
 getClickTrainGraphicsin interfaceClickTrainAlgorithm- Returns:
 - the click train graphics.
 
 - 
update
Update the algorithm- Specified by:
 updatein 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:
 getUnitNamein interfaceSettingsNameProvider- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- 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:ClickTrainAlgorithmGet logging class for click algorithm specific information.- Specified by:
 getCTAlgorithmInfoLoggingin interfaceClickTrainAlgorithm- Returns:
 - the ct algorithm logging.
 
 
 -