Class SimpleChi2VarDelta
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2VarDelta
- All Implemented Interfaces:
 MHTChi2Var<PamDataUnit>,Cloneable
- Direct Known Subclasses:
 AmplitudeChi2,BearingChi2Delta
Chi2 variable which compares the difference between the two three values. i.e 
 difference between val2-val1 and val3-val2;
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from class clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
settingsPane - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoublecalcDeltaChi2(double lastDelta, double newDelta, double timeDiff) Calculate the chi2 for two different delta values.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, calcChi2, clear, clone, getChi2, getDiffValue, getError, getErrValue, getLastDataUnit, getMinCutValue, getSettingsObject, getSettingsPane, getSimpleChiVarParams, isDataBlockCompatible, setChi2, setError, setLastDataUnit, setSettingsObject, setSimpleChiVarParamsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.MHTChi2Var
getName, getUnits 
- 
Constructor Details
- 
SimpleChi2VarDelta
public SimpleChi2VarDelta() 
 - 
 - 
Method Details
- 
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
 
 - 
calcDeltaChi2
public double calcDeltaChi2(double lastDelta, double newDelta, double timeDiff) Calculate the chi2 for two different delta values.- Parameters:
 lastDelta- - the first delta valuenewDelta- - the second delta valuetimeDiff- - the time difference for error calculation- Returns:
 - the chi^2 value.
 
 
 -