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
Nested ClassesModifier and TypeClassDescriptionclassShow IDI values as milliseconds in controls. - 
Field Summary
Fields inherited from class clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
settingsPane - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoublecalcChi2(ArrayList<PamDataUnit> mhtDataUnits, IDIManager iciManager) Calculate the chi2 value for a particular variable from a list of data units in a track.voidclear()Reset everything.doublegetDiffValue(PamDataUnit pamDataUnit0, PamDataUnit pamDataUnit1) Get the difference in value between two sequential data units.doublegetErrValue(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.voidSet the chi2 params for the chi2variable.doubleupdateChi2(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
calcChi2, clone, getChi2, getError, getLastDataUnit, getMinCutValue, getSettingsObject, getSimpleChiVarParams, isDataBlockCompatible, setChi2, setError, setLastDataUnit, setSettingsObject 
- 
Constructor Details
- 
IDIChi2
public IDIChi2() 
 - 
 - 
Method Details
- 
setSimpleChiVarParams
Description copied from class:SimpleChi2VarSet the chi2 params for the chi2variable.- Overrides:
 setSimpleChiVarParamsin classSimpleChi2Var- Parameters:
 params-
 - 
getSettingsPane
Description copied from interface:MHTChi2VarGet the settings pane with controls to change MHTChi2Var settings- Specified by:
 getSettingsPanein interfaceMHTChi2Var<PamDataUnit>- Overrides:
 getSettingsPanein classSimpleChi2Var- Returns:
 - the MHTChiVar specific settings pane.
 
 - 
getName
Description copied from interface:MHTChi2VarGet the name of the chi^2 variable.- Returns:
 - the name of the chi^2 variable.
 
 - 
calcChi2
Description copied from interface:MHTChi2VarCalculate the chi2 value for a particular variable from a list of data units in a track.- Specified by:
 calcChi2in interfaceMHTChi2Var<PamDataUnit>- Overrides:
 calcChi2in 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:MHTChi2VarUpdate the existing chi2 value with a new data unit and track bitset.- Specified by:
 updateChi2in interfaceMHTChi2Var<PamDataUnit>- Overrides:
 updateChi2in 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:SimpleChi2VarGet the difference in value between two sequential data units. This is top of the chi2 equation.- Specified by:
 getDiffValuein 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:SimpleChi2VarGet the error value between two sequential data units. This is denominator of the chi2 equation.- Specified by:
 getErrValuein classSimpleChi2Var- Parameters:
 pamDataUnit0- - the first data unit.pamDataUnit1- - the second data unit.- Returns:
 - - the error between the difference
 
 - 
getUnits
Description copied from interface:MHTChi2VarGet the data units for the MHTChi2 var.- Returns:
 - the units.
 
 - 
clear
public void clear()Description copied from class:SimpleChi2VarReset everything.- Specified by:
 clearin interfaceMHTChi2Var<PamDataUnit>- Overrides:
 clearin classSimpleChi2Var
 
 -