Class FragmentClassifierParams
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
This class contains the basic parameters which could be applied to any fragment classification method including how the whistles were fragmented, and the section length as well as basic information about the input data from the whistle detector.
Sine the classification can use a number of different statistical classifiers, and those classifiers may also be used to solve other classification problems in PAMGUARD the actual classification parameters are stored in a separate abstract class ClassifierParams which are got directly from specific classifiers.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Jama.Matrix
boolean
int
int
int
double[]
int
double
Min probability for classification.int
float
int
static final long
Jama.Matrix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FragmentClassifierParams
clone()
int
Jama.Matrix
int
int
int
double[]
double
double
int
double
int
Need to override the Matrix fields here so that they return the double[][] arrayfloat
int
String[]
Jama.Matrix
void
setClassifierParams
(ClassifierParams classifierParams) void
setClassifierType
(int classifierType) void
setConfusionMatrix
(Jama.Matrix confusionMatrix) void
setFftHop
(int fftHop) void
setFftLength
(int fftLength) void
setFragmentLength
(int fragmentLength) void
setFrequencyRange
(double[] frequencyRange) void
setMinimumContourLength
(int minimumContourLength) void
setMinimumProbability
(double minimumProbability) void
setNBootstrap
(int bootstrap) void
setSampleRate
(float sampleRate) void
setSectionLength
(int sectionLength) void
setSpeciesList
(String[] speciesList) void
setStdConfusion
(Jama.Matrix stdConfusion)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
classifierType
public int classifierType -
fftLength
public int fftLength -
fftHop
public int fftHop -
fragmentLength
public int fragmentLength -
sectionLength
public int sectionLength -
minimumProbability
public double minimumProbabilityMin probability for classification.In a linear classifier, probabilities are normalised to one, ideally one output is close to one and the others are small, but often you get several candidate values. This should be able to weed these out and create an unknown class.
With the quadratic classifier, output for each species is an absolute probability so setting a minimum will easily generate an unknown class.
-
frequencyRange
public double[] frequencyRange -
sampleRate
public float sampleRate -
nBootstrap
public int nBootstrap -
confusionMatrix
public Jama.Matrix confusionMatrix -
stdConfusion
public Jama.Matrix stdConfusion -
classifierParams
-
fileName
-
dumpTextFile
public boolean dumpTextFile -
minimumContourLength
public int minimumContourLength
-
-
Constructor Details
-
Method Details
-
getClassifierType
public int getClassifierType() -
setClassifierType
public void setClassifierType(int classifierType) -
setSpeciesList
- Parameters:
speciesList
- the speciesList to set
-
getSpeciesList
- Returns:
- the speciesList
-
getClassifierClass
-
getFftLength
public int getFftLength() -
setFftLength
public void setFftLength(int fftLength) -
getFftHop
public int getFftHop() -
setFftHop
public void setFftHop(int fftHop) -
getFileName
-
getFragmentLength
public int getFragmentLength() -
setFragmentLength
public void setFragmentLength(int fragmentLength) -
getSectionLength
public int getSectionLength() -
setSectionLength
public void setSectionLength(int sectionLength) -
getMinimumProbability
public double getMinimumProbability()- Returns:
- the minimumProbability
-
setMinimumProbability
public void setMinimumProbability(double minimumProbability) - Parameters:
minimumProbability
- the minimumProbability to set
-
getMinimumContourLength
public int getMinimumContourLength()- Returns:
- the minimumContourLength
-
setMinimumContourLength
public void setMinimumContourLength(int minimumContourLength) - Parameters:
minimumContourLength
- the minimumContourLength to set
-
getFrequencyRange
public double[] getFrequencyRange() -
setFrequencyRange
public void setFrequencyRange(double[] frequencyRange) -
getSampleRate
public float getSampleRate() -
setSampleRate
public void setSampleRate(float sampleRate) -
getNBootstrap
public int getNBootstrap() -
setNBootstrap
public void setNBootstrap(int bootstrap) -
getConfusionMatrix
public Jama.Matrix getConfusionMatrix() -
setConfusionMatrix
public void setConfusionMatrix(Jama.Matrix confusionMatrix) -
getStdConfusion
public Jama.Matrix getStdConfusion() -
setStdConfusion
public void setStdConfusion(Jama.Matrix stdConfusion) -
getClassifierParams
-
getMinFrequency
public double getMinFrequency() -
getMaxFrequency
public double getMaxFrequency() -
setClassifierParams
-
clone
-
getParameterSet
Need to override the Matrix fields here so that they return the double[][] array- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-