Package whistleClassifier
Class FragmentClassifierParams
java.lang.Object
whistleClassifier.FragmentClassifierParams
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class FragmentClassifierParams
extends Object
implements Serializable, Cloneable, ManagedParameters
Parameters class for fragmented whistle classification.
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
Modifier and TypeFieldDescriptionboolean
int
static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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:
-
dumpTextFile
public boolean dumpTextFile -
minimumContourLength
public int minimumContourLength
-
-
Constructor Details
-
FragmentClassifierParams
public FragmentClassifierParams()
-
-
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
-
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.
-