Class IDIChi2
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.IDIChi2
- All Implemented Interfaces:
MHTChi2Var<PamDataUnit>
,Cloneable
Calculate the chi2 value based on slowly changing inter-click-interval.
The ICI value is a slightly special case becuase it's based ont he IDIManager calculations.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Show IDI values as milliseconds in controls. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
calcChi2
(ArrayList<PamDataUnit> mhtDataUnits, IDIManager iciManager) Calculate the chi2 value for a particular variable from a list of data units in a track.void
clear()
Reset everything.double
getDiffValue
(PamDataUnit pamDataUnit0, PamDataUnit pamDataUnit1) Get the difference in value between two sequential data units.double
getErrValue
(PamDataUnit pamDataUnit0, PamDataUnit pamDataUnit1) Get the error value between two sequential data units.getName()
Get the name of the chi^2 variable.Get the settings pane with controls to change MHTChi2Var settingsgetUnits()
Get the data units for the MHTChi2 var.void
Set the chi2 params for the chi2variable.double
updateChi2
(PamDataUnit newdataUnit, BitSet bitSet, int bitcount, int kcount, IDIManager idiManager) Update the existing chi2 value with a new data unit and track bitset.Methods inherited from class clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clone, getChi2, getError, getMinCutValue, getSettingsObject, getSimpleChiVarParams, isDataBlockCompatible, setError, setSettingsObject
-
Constructor Details
-
IDIChi2
public IDIChi2()
-
-
Method Details
-
setSimpleChiVarParams
Description copied from class:SimpleChi2Var
Set the chi2 params for the chi2variable.- Overrides:
setSimpleChiVarParams
in classSimpleChi2Var
-
getSettingsPane
Description copied from interface:MHTChi2Var
Get the settings pane with controls to change MHTChi2Var settings- Specified by:
getSettingsPane
in interfaceMHTChi2Var<PamDataUnit>
- Overrides:
getSettingsPane
in classSimpleChi2Var
- Returns:
- the MHTChiVar specific settings pane.
-
getName
Description copied from interface:MHTChi2Var
Get the name of the chi^2 variable.- Returns:
- the name of the chi^2 variable.
-
calcChi2
Description copied from interface:MHTChi2Var
Calculate the chi2 value for a particular variable from a list of data units in a track.- Specified by:
calcChi2
in interfaceMHTChi2Var<PamDataUnit>
- Overrides:
calcChi2
in classSimpleChi2Var
- Parameters:
mhtDataUnits
- - a list of items in the trackiciManager
- - class with the the times of the data series starting from data unit 0 at time 0 in seconds. The time series may be based on simply the millisecond time or a more accurate time using sample number and cross correlation.- Returns:
- chi2 value.
-
updateChi2
public double updateChi2(PamDataUnit newdataUnit, BitSet bitSet, int bitcount, int kcount, IDIManager idiManager) Description copied from interface:MHTChi2Var
Update the existing chi2 value with a new data unit and track bitset.- Specified by:
updateChi2
in interfaceMHTChi2Var<PamDataUnit>
- Overrides:
updateChi2
in classSimpleChi2Var
- Parameters:
newdataUnit
- - the new data unit.bitSet
- - the bitset for the track.bitcount
- - the number of detections in the track.kcount
- - the current kcount, the total number of detections added to possibility mix.idiManager
- - the IDI manager.- Returns:
- the new chi^2 value
-
getDiffValue
Description copied from class:SimpleChi2Var
Get the difference in value between two sequential data units. This is top of the chi2 equation.- Specified by:
getDiffValue
in classSimpleChi2Var
- Parameters:
pamDataUnit0
- - the first data unit.pamDataUnit1
- - the second data unit.- Returns:
- - the difference in selected variable between the two data units.
-
getErrValue
Description copied from class:SimpleChi2Var
Get the error value between two sequential data units. This is denominator of the chi2 equation.- Specified by:
getErrValue
in classSimpleChi2Var
- Parameters:
pamDataUnit0
- - the first data unit.pamDataUnit1
- - the second data unit.- Returns:
- - the error between the difference
-
getUnits
Description copied from interface:MHTChi2Var
Get the data units for the MHTChi2 var.- Returns:
- the units.
-
clear
public void clear()Description copied from class:SimpleChi2Var
Reset everything.- Specified by:
clear
in interfaceMHTChi2Var<PamDataUnit>
- Overrides:
clear
in classSimpleChi2Var
-