Class StandardMHTChi2Provider
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.StandardMHTChi2Provider
- All Implemented Interfaces:
MHTChi2Provider<PamDataUnit>
Standard MHT Chi2 provider manages the StandardMHTChi2 calculators associated with each possible track.
The standard chi^2 provider holds a list of subsequent ICI values between all clicks (on one channel). This is then used to calculate ICI value for all possible tracks quickly.
- Author:
- Jamie Macaulay
-
Constructor Summary
ConstructorDescriptionStandardMHTChi2Provider
(MHTParams mhtParams) StandardMHTChi2Provider
(StandardMHTChi2Params pamMHTChi2Params2, MHTKernelParams mHTkernalParams) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDetection
(PamDataUnit detection, int kcount) Called every time a new detection is added.void
clear()
Called whenever the MHTKernel is reset and/or a completely new set of click trains are to be analysed.void
clearKernelGarbage
(int newRefIndex) Called whenever a clear Kernel Garbage command is sent to start at a new data unit.Get the ICIManager.Get the MHT Kernel parameters.Get the parameters for the standardGet the chi2 parameters.GUInewMHTChi2
(MHTChi2<PamDataUnit> mhtChi2) Create a new MHTChi2 instance.void
Print the settings to the consolevoid
setMHTParams
(MHTParams mhtParams) Set the MHT parameters fro the provider.void
setPamMHTChi2Params
(StandardMHTChi2Params pamMHTChi2Params)
-
Constructor Details
-
StandardMHTChi2Provider
-
StandardMHTChi2Provider
public StandardMHTChi2Provider(StandardMHTChi2Params pamMHTChi2Params2, MHTKernelParams mHTkernalParams)
-
-
Method Details
-
addDetection
Description copied from interface:MHTChi2Provider
Called every time a new detection is added.- Specified by:
addDetection
in interfaceMHTChi2Provider<PamDataUnit>
- Parameters:
detection
- - detectionkcount
- - the total number of detection so far.
-
newMHTChi2
Description copied from interface:MHTChi2Provider
Create a new MHTChi2 instance. If mhtChi2 is non null then this is cloned with all current saved data and a new instance added.- Specified by:
newMHTChi2
in interfaceMHTChi2Provider<PamDataUnit>
- Parameters:
mhtChi2
- - current instance of mhtChi2. Can be null.- Returns:
- - new instance of MHTChi2
-
getIDIManager
Get the ICIManager. This handles calculation of inter click interval.- Returns:
- the ICI manager.
-
getMHTKernelParams
Get the MHT Kernel parameters.- Returns:
- the MHT kernel parameters.
-
getPamMHTChi2Params
Get the parameters for the standard- Returns:
- the standard MHT chi2 parameters.
-
setPamMHTChi2Params
-
getSettingsObject
GUI- Specified by:
getSettingsObject
in interfaceMHTChi2Provider<PamDataUnit>
-
clear
public void clear()Description copied from interface:MHTChi2Provider
Called whenever the MHTKernel is reset and/or a completely new set of click trains are to be analysed.- Specified by:
clear
in interfaceMHTChi2Provider<PamDataUnit>
-
getParams
Get the chi2 parameters.- Returns:
- returning the standard MHT chi2.
-
printSettings
public void printSettings()Description copied from interface:MHTChi2Provider
Print the settings to the console- Specified by:
printSettings
in interfaceMHTChi2Provider<PamDataUnit>
-
setMHTParams
Description copied from interface:MHTChi2Provider
Set the MHT parameters fro the provider.- Specified by:
setMHTParams
in interfaceMHTChi2Provider<PamDataUnit>
- Parameters:
mhtParams
- - the parameters to set.
-
clearKernelGarbage
public void clearKernelGarbage(int newRefIndex) Description copied from interface:MHTChi2Provider
Called whenever a clear Kernel Garbage command is sent to start at a new data unit. i.e. the kernel now starts from a new data unit and so some settings in the chi^2 may need to change.- Specified by:
clearKernelGarbage
in interfaceMHTChi2Provider<PamDataUnit>
- Parameters:
newRefIndex
- - the index of the new reference data unit with respect to the old list.
-
getChi2Params
- Specified by:
getChi2Params
in interfaceMHTChi2Provider<PamDataUnit>
- Returns:
-