whistleClassifier
Class FragmentClassifierParams

java.lang.Object
  extended by whistleClassifier.FragmentClassifierParams
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class FragmentClassifierParams
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

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:
ClassifierParams, Serialized Form

Field Summary
protected  ClassifierParams classifierParams
           
protected  int classifierType
           
protected  Jama.Matrix confusionMatrix
           
 boolean dumpTextFile
           
protected  int fftHop
           
protected  int fftLength
           
protected  java.lang.String fileName
           
protected  int fragmentLength
           
protected  double[] frequencyRange
           
protected  int nBootstrap
           
protected  float sampleRate
           
protected  int sectionLength
           
static long serialVersionUID
           
protected  java.lang.String[] speciesList
           
protected  Jama.Matrix stdConfusion
           
 
Constructor Summary
FragmentClassifierParams()
           
 
Method Summary
protected  FragmentClassifierParams clone()
           
 java.lang.Class getClassifierClass()
           
 ClassifierParams getClassifierParams()
           
 int getClassifierType()
           
 Jama.Matrix getConfusionMatrix()
           
 int getFftHop()
           
 int getFftLength()
           
 int getFragmentLength()
           
 double[] getFrequencyRange()
           
 int getNBootstrap()
           
 float getSampleRate()
           
 int getSectionLength()
           
 java.lang.String[] getSpeciesList()
           
 Jama.Matrix getStdConfusion()
           
 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 setNBootstrap(int bootstrap)
           
 void setSampleRate(float sampleRate)
           
 void setSectionLength(int sectionLength)
           
 void setSpeciesList(java.lang.String[] speciesList)
           
 void setStdConfusion(Jama.Matrix stdConfusion)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

classifierType

protected int classifierType

fftLength

protected int fftLength

fftHop

protected int fftHop

fragmentLength

protected int fragmentLength

sectionLength

protected int sectionLength

frequencyRange

protected double[] frequencyRange

sampleRate

protected float sampleRate

nBootstrap

protected int nBootstrap

confusionMatrix

protected Jama.Matrix confusionMatrix

stdConfusion

protected Jama.Matrix stdConfusion

classifierParams

protected ClassifierParams classifierParams

speciesList

protected java.lang.String[] speciesList

fileName

protected java.lang.String fileName

dumpTextFile

public boolean dumpTextFile
Constructor Detail

FragmentClassifierParams

public FragmentClassifierParams()
Method Detail

getClassifierType

public int getClassifierType()

setClassifierType

public void setClassifierType(int classifierType)

setSpeciesList

public void setSpeciesList(java.lang.String[] speciesList)
Parameters:
speciesList - the speciesList to set

getSpeciesList

public java.lang.String[] getSpeciesList()
Returns:
the speciesList

getClassifierClass

public java.lang.Class getClassifierClass()

getFftLength

public int getFftLength()

setFftLength

public void setFftLength(int fftLength)

getFftHop

public int getFftHop()

setFftHop

public void setFftHop(int fftHop)

getFragmentLength

public int getFragmentLength()

setFragmentLength

public void setFragmentLength(int fragmentLength)

getSectionLength

public int getSectionLength()

setSectionLength

public void setSectionLength(int sectionLength)

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

setClassifierParams

public void setClassifierParams(ClassifierParams classifierParams)

clone

protected FragmentClassifierParams clone()
Overrides:
clone in class java.lang.Object