Class Chi2ThresholdClassifier
java.lang.Object
clickTrainDetector.classification.simplechi2classifier.Chi2ThresholdClassifier
- All Implemented Interfaces:
CTClassifier
Simple classifier which has a chi2 threshold
- Author:
- Jamie Macaulay
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe chi2 threshold to set.The classifier graphicsFields inherited from interface clickTrainDetector.classification.CTClassifier
NOSPECIES, PRECLASSIFIERFLAG -
Constructor Summary
ConstructorsConstructorDescriptionChi2ThresholdClassifier(int defaultSpeciesID) Chi2ThresholdClassifier(ClickTrainControl clickTrainControl, int defaultSpeciesID) -
Method Summary
Modifier and TypeMethodDescriptionclassifyClickTrain(CTDataUnit clickTrain) Classify a click train detection.voidcreateDataSelector(PamDataBlock<?> source) Get the data selector.getName()Get the name of the classifier.Get the simple classifier parameters.intGet the unique species ID for the classifier.voidsetParams(CTClassifierParams ctClassifierParams) Set the classifier parameters.voidsetParams(Chi2ThresholdParams clssfrParams) Set the classifier parameters.
-
Field Details
-
clssfrParams
The chi2 threshold to set. This is the chi2 value divided by the number of clicks in the train -
ctClassifierGraphics
The classifier graphics
-
-
Constructor Details
-
Chi2ThresholdClassifier
-
Chi2ThresholdClassifier
public Chi2ThresholdClassifier(int defaultSpeciesID)
-
-
Method Details
-
classifyClickTrain
Description copied from interface:CTClassifierClassify a click train detection.- Specified by:
classifyClickTrainin interfaceCTClassifier- Returns:
- the classified data block.
-
createDataSelector
Get the data selector.- Parameters:
source- - the source data block
-
getName
Description copied from interface:CTClassifierGet the name of the classifier.- Specified by:
getNamein interfaceCTClassifier- Returns:
- the name of the classifier
-
getCTClassifierGraphics
- Specified by:
getCTClassifierGraphicsin interfaceCTClassifier
-
setParams
Set the classifier parameters.- Parameters:
clssfrParams- - the classifier parameters to set.
-
getParams
Get the simple classifier parameters.- Specified by:
getParamsin interfaceCTClassifier- Returns:
- the classifier parameters.
-
setParams
Description copied from interface:CTClassifierSet the classifier parameters.- Specified by:
setParamsin interfaceCTClassifier- Parameters:
ctClassifierParams- - the ct classifier paratmers
-
getSpeciesID
public int getSpeciesID()Description copied from interface:CTClassifierGet the unique species ID for the classifier.- Specified by:
getSpeciesIDin interfaceCTClassifier- Returns:
- the name of the classifier
-
getDataSelector
-