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
ConstructorsConstructorDescriptionStandardMHTChi2Provider(MHTParams mhtParams) StandardMHTChi2Provider(StandardMHTChi2Params pamMHTChi2Params2, MHTKernelParams mHTkernalParams) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDetection(PamDataUnit detection, int kcount) Called every time a new detection is added.voidclear()Called whenever the MHTKernel is reset and/or a completely new set of click trains are to be analysed.voidclearKernelGarbage(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.voidPrint the settings to the consolevoidsetMHTParams(MHTParams mhtParams) Set the MHT parameters fro the provider.voidsetPamMHTChi2Params(StandardMHTChi2Params pamMHTChi2Params)
-
Constructor Details
-
StandardMHTChi2Provider
-
StandardMHTChi2Provider
public StandardMHTChi2Provider(StandardMHTChi2Params pamMHTChi2Params2, MHTKernelParams mHTkernalParams)
-
-
Method Details
-
addDetection
Description copied from interface:MHTChi2ProviderCalled every time a new detection is added.- Specified by:
addDetectionin interfaceMHTChi2Provider<PamDataUnit>- Parameters:
detection- - detectionkcount- - the total number of detection so far.
-
newMHTChi2
Description copied from interface:MHTChi2ProviderCreate 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:
newMHTChi2in 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:
getSettingsObjectin interfaceMHTChi2Provider<PamDataUnit>
-
clear
public void clear()Description copied from interface:MHTChi2ProviderCalled whenever the MHTKernel is reset and/or a completely new set of click trains are to be analysed.- Specified by:
clearin interfaceMHTChi2Provider<PamDataUnit>
-
getParams
Get the chi2 parameters.- Returns:
- returning the standard MHT chi2.
-
printSettings
public void printSettings()Description copied from interface:MHTChi2ProviderPrint the settings to the console- Specified by:
printSettingsin interfaceMHTChi2Provider<PamDataUnit>
-
setMHTParams
Description copied from interface:MHTChi2ProviderSet the MHT parameters fro the provider.- Specified by:
setMHTParamsin interfaceMHTChi2Provider<PamDataUnit>- Parameters:
mhtParams- - the parameters to set.
-
clearKernelGarbage
public void clearKernelGarbage(int newRefIndex) Description copied from interface:MHTChi2ProviderCalled 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:
clearKernelGarbagein interfaceMHTChi2Provider<PamDataUnit>- Parameters:
newRefIndex- - the index of the new reference data unit with respect to the old list.
-
getChi2Params
- Specified by:
getChi2Paramsin interfaceMHTChi2Provider<PamDataUnit>- Returns:
-