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 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

      public void setSpeciesList(String[] speciesList)
      Parameters:
      speciesList - the speciesList to set
    • getSpeciesList

      public String[] getSpeciesList()
      Returns:
      the speciesList
    • getClassifierClass

      public Class getClassifierClass()
    • getFftLength

      public int getFftLength()
    • setFftLength

      public void setFftLength(int fftLength)
    • getFftHop

      public int getFftHop()
    • setFftHop

      public void setFftHop(int fftHop)
    • getFileName

      public String 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

      public ClassifierParams getClassifierParams()
    • getMinFrequency

      public double getMinFrequency()
    • getMaxFrequency

      public double getMaxFrequency()
    • setClassifierParams

      public void setClassifierParams(ClassifierParams classifierParams)
    • getParameterSet

      public PamParameterSet getParameterSet()
      Need to override the Matrix fields here so that they return the double[][] array
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.