Class TimeDelayChi2Delta
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.TimeDelayChi2Delta
- All Implemented Interfaces:
 MHTChi2Var<PamDataUnit>,Cloneable
Chi^2 value for time delays. This might be a little more robust than bearing, especially for 
 hydrophone arrays with more than two hydrophones.
- 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.doublegetDiffValue(PamDataUnit pamDataUnit0, PamDataUnit pamDataUnit1) Get the difference in value between two sequential data units.protected double[]getDiffValue2(PamDataUnit lastDataUnit, PamDataUnit newdataUnit) 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.booleanisDataBlockCompatible(PamDataBlock parentDataBlock) Check whether a data block is compatible with this type of data unit.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, getError, getLastDataUnit, getMinCutValue, getSettingsObject, getSimpleChiVarParams, setChi2, setError, setLastDataUnit, setSettingsObject, setSimpleChiVarParams 
- 
Constructor Details
- 
TimeDelayChi2Delta
public TimeDelayChi2Delta() 
 - 
 - 
Method Details
- 
getName
Description copied from interface:MHTChi2VarGet the name of the chi^2 variable.- Returns:
 - the name of the chi^2 variable.
 
 - 
getUnits
Description copied from interface:MHTChi2VarGet the data units for the MHTChi2 var.- Returns:
 - the units.
 
 - 
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
 
 - 
getDiffValue2
- Parameters:
 lastDataUnit-newdataUnit-- Returns:
 
 - 
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.
 
 - 
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
 
 - 
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.
 
 - 
isDataBlockCompatible
Description copied from interface:MHTChi2VarCheck whether a data block is compatible with this type of data unit.- Specified by:
 isDataBlockCompatiblein interfaceMHTChi2Var<PamDataUnit>- Overrides:
 isDataBlockCompatiblein classSimpleChi2Var- Parameters:
 parentDataBlock- - the parent data block- Returns:
 - true if the data block is allowed
 
 
 -