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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
calcDeltaChi2
(double lastDelta, double newDelta, double timeDiff) Calculate the chi2 for two different delta values.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
calcChi2, clear, clone, getChi2, getDiffValue, getError, getErrValue, getMinCutValue, getSettingsObject, getSettingsPane, getSimpleChiVarParams, isDataBlockCompatible, setError, setSettingsObject, setSimpleChiVarParams
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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: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
-
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.
-