Class CorrelationChi2
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.CorrelationChi2
- All Implemented Interfaces:
MHTChi2Var<PamDataUnit>
,Cloneable
Calculates the correlation value between subsequent clicks. Unlike amplitude
and bearing used in the click train detector correlation is an absolute
measure i.e. the absolute normalized difference between the current and
second last detection in a train, rather than the change in difference
between the last three clicks,.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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.boolean
isDataBlockCompatible
(PamDataBlock parentDataBlock) Check whether a data block is compatible with this type of data unit.void
setSettingsObject
(Object object) Set the settings object for saving the parameters.void
Set the chi2 params for the chi2variable.Methods inherited from class clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
calcChi2, clear, clone, getChi2, getError, getMinCutValue, getSettingsObject, getSimpleChiVarParams, setError, updateChi2
-
Constructor Details
-
CorrelationChi2
public CorrelationChi2()
-
-
Method Details
-
setSettingsObject
Description copied from interface:MHTChi2Var
Set the settings object for saving the parameters. This is only used for saving params.- Specified by:
setSettingsObject
in interfaceMHTChi2Var<PamDataUnit>
- Overrides:
setSettingsObject
in classSimpleChi2Var
- Parameters:
object
- - the settings object.
-
setSimpleChiVarParams
Description copied from class:SimpleChi2Var
Set the chi2 params for the chi2variable.- Overrides:
setSimpleChiVarParams
in classSimpleChi2Var
-
getName
Description copied from interface:MHTChi2Var
Get the name of the chi^2 variable.- Returns:
- the name of the chi^2 variable.
-
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.
-
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
-
isDataBlockCompatible
Description copied from interface:MHTChi2Var
Check whether a data block is compatible with this type of data unit.- Specified by:
isDataBlockCompatible
in interfaceMHTChi2Var<PamDataUnit>
- Overrides:
isDataBlockCompatible
in classSimpleChi2Var
- Parameters:
parentDataBlock
- - the parent data block- Returns:
- true if the data block is allowed
-
getUnits
Description copied from interface:MHTChi2Var
Get the data units for the MHTChi2 var.- Returns:
- the units.
-