Class PeakFrequencyChi2
java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.PeakFrequencyChi2
- All Implemented Interfaces:
 MHTChi2Var<PamDataUnit>,Cloneable
Peak frequency variable for click train detector. Correlation is very similar to this but 
 peak frequency is more simple and perhaps a more stable measure.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from class clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
settingsPane - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoublegetDiffValue(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.getUnits()Get the data units for the MHTChi2 var.booleanisDataBlockCompatible(PamDataBlock parentDataBlock) Check whether a data block is compatible with this type of data unit.voidsetSettingsObject(Object object) Set the settings object for saving the parameters.Methods inherited from class clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2Var
calcChi2, calcChi2, clear, clone, getChi2, getError, getLastDataUnit, getMinCutValue, getSettingsObject, getSettingsPane, getSimpleChiVarParams, setChi2, setError, setLastDataUnit, setSimpleChiVarParams, updateChi2 
- 
Constructor Details
- 
PeakFrequencyChi2
public PeakFrequencyChi2() 
 - 
 - 
Method Details
- 
getName
Description copied from interface:MHTChi2VarGet the name of the chi^2 variable.- Returns:
 - the name of the chi^2 variable.
 
 - 
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.
 
 - 
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
 
 - 
setSettingsObject
Description copied from interface:MHTChi2VarSet the settings object for saving the parameters. This is only used for saving params.- Specified by:
 setSettingsObjectin interfaceMHTChi2Var<PamDataUnit>- Overrides:
 setSettingsObjectin classSimpleChi2Var- Parameters:
 object- - the settings object.
 
 -