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
Modifier and TypeFieldDescriptionThe chi2 threshold to set.The classifier graphicsFields inherited from interface clickTrainDetector.classification.CTClassifier
NOSPECIES, PRECLASSIFIERFLAG
-
Constructor Summary
ConstructorDescriptionChi2ThresholdClassifier
(int defaultSpeciesID) Chi2ThresholdClassifier
(ClickTrainControl clickTrainControl, int defaultSpeciesID) -
Method Summary
Modifier and TypeMethodDescriptionclassifyClickTrain
(CTDataUnit clickTrain) Classify a click train detection.void
createDataSelector
(PamDataBlock<?> source) Get the data selector.getName()
Get the name of the classifier.Get the simple classifier parameters.int
Get the unique species ID for the classifier.void
setParams
(CTClassifierParams ctClassifierParams) Set the classifier parameters.void
setParams
(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:CTClassifier
Classify a click train detection.- Specified by:
classifyClickTrain
in interfaceCTClassifier
- Returns:
- the classified data block.
-
createDataSelector
Get the data selector.- Parameters:
source
- - the source data block
-
getName
Description copied from interface:CTClassifier
Get the name of the classifier.- Specified by:
getName
in interfaceCTClassifier
- Returns:
- the name of the classifier
-
getCTClassifierGraphics
- Specified by:
getCTClassifierGraphics
in interfaceCTClassifier
-
setParams
Set the classifier parameters.- Parameters:
clssfrParams
- - the classifier parameters to set.
-
getParams
Get the simple classifier parameters.- Specified by:
getParams
in interfaceCTClassifier
- Returns:
- the classifier parameters.
-
setParams
Description copied from interface:CTClassifier
Set the classifier parameters.- Specified by:
setParams
in interfaceCTClassifier
- Parameters:
ctClassifierParams
- - the ct classifier paratmers
-
getSpeciesID
public int getSpeciesID()Description copied from interface:CTClassifier
Get the unique species ID for the classifier.- Specified by:
getSpeciesID
in interfaceCTClassifier
- Returns:
- the name of the classifier
-
getDataSelector
-