clickDetector.ClickClassifiers.basicSweep
Class SweepClassifierSet

java.lang.Object
  extended by clickDetector.ClickClassifiers.basicSweep.SweepClassifierSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

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

See Also:
Serialized Form

Field Summary
 int channelChoices
           
static int CHANNELS_REQUIRE_ALL
           
static int CHANNELS_REQUIRE_ONE
           
static int CHANNELS_USE_MEANS
           
 double[][] controlEnergyBand
           
static java.lang.String[] defaultSpecies
           
 boolean discard
           
 boolean enable
           
 boolean enableEnergyBands
           
 boolean enableLength
           
(package private)  boolean enableMean
           
(package private)  boolean enablePeak
           
(package private)  boolean enableWidth
           
 boolean enableZeroCrossings
           
 double[] energyThresholds
           
 double lengthdB
           
 int lengthSmoothing
           
 double maxLength
           
(package private)  double[] meanRange
           
 double minLength
           
 java.lang.String name
           
static int nControlBands
           
 int[] nCrossings
           
(package private)  double[] peakRange
           
(package private)  double[] peakSearchRange
           
(package private)  int peakSmoothing
           
(package private)  double[] peakWidthRange
           
(package private)  double peakWidthThreshold
           
 int restrictedBins
           
 boolean restrictLength
           
static long serialVersionUID
           
 int speciesCode
           
 PamSymbol symbol
           
 double[] testEnergyBand
           
 double[] zcSweep
           
 
Constructor Summary
SweepClassifierSet()
           
 
Method Summary
 void beakedWhaleDefaults()
           
 boolean canProcess(double sampleRate, boolean verbose)
          check that the settings can be processed at the current sample rate.
 void checkEnergyParamsAllocation()
           
 void checkPeakFreqAllocation()
           
 void checkZCAllocation()
           
protected  SweepClassifierSet clone()
           
static java.lang.String getChannelOptionsName(int iOpt)
           
protected  boolean needLength()
           
 void porpoiseDefaults()
           
private  boolean sayWarning(java.lang.String warningText, boolean verbose)
           
 boolean setSpeciesDefaults(java.lang.String species)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultSpecies

public static final transient java.lang.String[] defaultSpecies

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

name

public java.lang.String name

speciesCode

public int speciesCode

discard

public boolean discard

symbol

public PamSymbol symbol

enable

public boolean enable

CHANNELS_REQUIRE_ALL

public static final int CHANNELS_REQUIRE_ALL
See Also:
Constant Field Values

CHANNELS_REQUIRE_ONE

public static final int CHANNELS_REQUIRE_ONE
See Also:
Constant Field Values

CHANNELS_USE_MEANS

public static final int CHANNELS_USE_MEANS
See Also:
Constant Field Values

channelChoices

public int channelChoices

restrictLength

public boolean restrictLength

restrictedBins

public int restrictedBins

enableLength

public boolean enableLength

lengthSmoothing

public int lengthSmoothing

lengthdB

public double lengthdB

minLength

public double minLength

maxLength

public double maxLength

nControlBands

public static final transient int nControlBands
See Also:
Constant Field Values

enableEnergyBands

public boolean enableEnergyBands

testEnergyBand

public double[] testEnergyBand

controlEnergyBand

public double[][] controlEnergyBand

energyThresholds

public double[] energyThresholds

enablePeak

boolean enablePeak

enableWidth

boolean enableWidth

enableMean

boolean enableMean

peakSearchRange

double[] peakSearchRange

peakRange

double[] peakRange

peakWidthRange

double[] peakWidthRange

meanRange

double[] meanRange

peakSmoothing

int peakSmoothing

peakWidthThreshold

double peakWidthThreshold

enableZeroCrossings

public boolean enableZeroCrossings

nCrossings

public int[] nCrossings

zcSweep

public double[] zcSweep
Constructor Detail

SweepClassifierSet

public SweepClassifierSet()
Method Detail

getChannelOptionsName

public static java.lang.String getChannelOptionsName(int iOpt)

clone

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

checkEnergyParamsAllocation

public void checkEnergyParamsAllocation()

checkPeakFreqAllocation

public void checkPeakFreqAllocation()

checkZCAllocation

public void checkZCAllocation()

canProcess

public boolean canProcess(double sampleRate,
                          boolean verbose)
check that the settings can be processed at the current sample rate.

Parameters:
sampleRate - sample rate in Hz
verbose - true if you want visible warning messages.
Returns:
true if OK, false otherwise.

needLength

protected boolean needLength()
Returns:
true if one or more tests require length data.

sayWarning

private boolean sayWarning(java.lang.String warningText,
                           boolean verbose)

setSpeciesDefaults

public boolean setSpeciesDefaults(java.lang.String species)

beakedWhaleDefaults

public void beakedWhaleDefaults()

porpoiseDefaults

public void porpoiseDefaults()