Class SweepClassifierSet
java.lang.Object
clickDetector.ClickClassifiers.ClickTypeCommonParams
clickDetector.ClickClassifiers.basicSweep.SweepClassifierSet
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class SweepClassifierSet
extends ClickTypeCommonParams
implements Serializable, Cloneable, ManagedParameters
Parameters for the sweep click classifier. Also handles some basic data cehcking
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptiondouble[]
double[]
int
static final int
static final int
static final int
static final int
static final int
double[][]
double
static final String[]
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
double[]
boolean
double
int
double
double[]
double
double
static final int
int[]
double[]
double[]
int
double[]
double
int
int
The type of length restriction.boolean
static final long
boolean
double[]
double[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
canProcess
(double sampleRate, boolean verbose) check that the settings can be processed at the current sample rate.void
void
Copied from the clone method...void
void
void
void
Check whether zero crossing parameters are set up properlystatic String
getChannelOptionsName
(int iOpt) Get a set of data that describes all of the parameters in a classdouble[]
void
void
setDiscard
(Boolean discard) void
void
setSpeciesCode
(int speciesCode) boolean
setSpeciesDefaults
(String species) Methods inherited from class clickDetector.ClickClassifiers.ClickTypeCommonParams
getAlarm, getAlarmEnabled, getDiscard, getEnable, getMaxTime, getName, getPrevTime, getSpeciesCode, setAlarm, setAlarmEnabled, setMaxTime, setPrevTime
-
Field Details
-
defaultSpecies
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
symbol
-
enable
public boolean enable -
CHANNELS_REQUIRE_ALL
public static final int CHANNELS_REQUIRE_ALL- See Also:
-
CHANNELS_REQUIRE_ONE
public static final int CHANNELS_REQUIRE_ONE- See Also:
-
CHANNELS_USE_MEANS
public static final int CHANNELS_USE_MEANS- See Also:
-
CLICK_CENTER
public static final int CLICK_CENTER- See Also:
-
CLICK_START
public static final int CLICK_START- See Also:
-
channelChoices
public int channelChoices -
restrictLength
public boolean restrictLength -
restrictedBins
public int restrictedBins -
restrictedBinstype
public int restrictedBinstypeThe type of length restriction. O is around the click sensor and 1 is a simple trim from the start of the click. -
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:
-
enableEnergyBands
public boolean enableEnergyBands -
testEnergyBand
public double[] testEnergyBand -
controlEnergyBand
public double[][] controlEnergyBand -
energyThresholds
public double[] energyThresholds -
testAmplitude
public boolean testAmplitude -
amplitudeRange
public double[] amplitudeRange -
enableFFTFilter
public boolean enableFFTFilter -
fftFilterParams
-
enablePeak
public boolean enablePeak -
enableWidth
public boolean enableWidth -
enableMean
public boolean enableMean -
peakSearchRange
public double[] peakSearchRange -
peakRange
public double[] peakRange -
peakWidthRange
public double[] peakWidthRange -
meanRange
public double[] meanRange -
peakSmoothing
public int peakSmoothing -
peakWidthThreshold
public double peakWidthThreshold -
enableZeroCrossings
public boolean enableZeroCrossings -
nCrossings
public int[] nCrossings -
enableSweep
public boolean enableSweep -
zcSweep
public double[] zcSweep -
enableMinXCrossCorr
public boolean enableMinXCrossCorr -
enablePeakXCorr
public boolean enablePeakXCorr -
minCorr
public double minCorr -
corrFactor
public double corrFactor -
enableBearingLims
public boolean enableBearingLims -
excludeBearingLims
public boolean excludeBearingLims -
bearingLims
public double[] bearingLims
-
-
Constructor Details
-
SweepClassifierSet
public SweepClassifierSet()
-
-
Method Details
-
getChannelOptionsName
-
checkCompatibility
public void checkCompatibility()Copied from the clone method... enableSweep has been separated from enableZeroCrossings, but for backwards compatibility set them to be the same if the version is being reved. -
checkEnergyParamsAllocation
public void checkEnergyParamsAllocation() -
checkPeakFreqAllocation
public void checkPeakFreqAllocation() -
checkZCAllocation
public void checkZCAllocation()Check whether zero crossing parameters are set up properly -
checkXCCorrAllocation
public void checkXCCorrAllocation() -
checkBearingAllocation
public void checkBearingAllocation() -
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 Hzverbose
- true if you want visible warning messages.- Returns:
- true if OK, false otherwise.
-
setSpeciesDefaults
-
beakedWhaleDefaults
public void beakedWhaleDefaults() -
porpoiseDefaults
public void porpoiseDefaults() -
getPeakSearchRange
public double[] getPeakSearchRange()- Returns:
- the peakSearchRange
-
setName
- Overrides:
setName
in classClickTypeCommonParams
- Parameters:
name
- the name to set
-
setSpeciesCode
public void setSpeciesCode(int speciesCode) - Overrides:
setSpeciesCode
in classClickTypeCommonParams
- Parameters:
speciesCode
- the speciesCode to set
-
setDiscard
- Overrides:
setDiscard
in classClickTypeCommonParams
- Parameters:
discard
- the discard to set
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Overrides:
getParameterSet
in classClickTypeCommonParams
- Returns:
- description of the parameters in a class.
-