Package whistlesAndMoans
Class WhistleToneParameters
java.lang.Object
PamView.GroupedSourceParameters
whistlesAndMoans.WhistleToneParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class WhistleToneParameters
extends GroupedSourceParameters
implements Serializable, Cloneable, ManagedParameters
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
int
boolean
Keep short stubs sticking out of main contour.int
int
int
static final long
static final int
static final int
Policy for showing short whistles on the spectrogram.static final int
int
Length of short whistles.int
boolean
Show the full contour outline - not just the peak lineboolean
On long spec displays stretch the contour so that the start time is correct, but it then uses 1 pixel per fft bin. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
double
Interval in seconds between background noise measurementsint
double
getMaxFrequency
(double sampleRate) double
Note that all the fields have getters, so even though they are private they will still be included in the output so we don't need to explicitly add them herevoid
setBackgroundInterval
(double backgroundInterval) Interval in seconds between background noise measurementsvoid
setConnectType
(int connectType) void
setDataSource
(String dataSource) void
setMaxFrequency
(double maxFrequency) void
setMinFrequency
(double minFrequency) void
setSpecNoiseSettings
(SpectrogramNoiseSettings specNoiseSettings) Methods inherited from class PamView.GroupedSourceParameters
countChannelGroups, getChannelBitmap, getChannelGroups, getChanOrSeqBitmap, getDataSource, getGroupChannels, getGroupingType, getGroupMap, mayHaveBearings, mayHaveRange, setChannelGroups, setChanOrSeqBitmap, setGroupingType
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
FRAGMENT_NONE
public static final int FRAGMENT_NONE- See Also:
-
FRAGMENT_DISCARD
public static final int FRAGMENT_DISCARD- See Also:
-
FRAGMENT_FRAGMENT
public static final int FRAGMENT_FRAGMENT- See Also:
-
FRAGMENT_RELINK
public static final int FRAGMENT_RELINK- See Also:
-
SHORT_SHOWALL
public static final int SHORT_SHOWALLPolicy for showing short whistles on the spectrogram.- See Also:
-
SHORT_HIDEALL
public static final int SHORT_HIDEALL- See Also:
-
SHORT_SHOWGREY
public static final int SHORT_SHOWGREY- See Also:
-
minPixels
public int minPixels -
minLength
public int minLength -
maxCrossLength
public int maxCrossLength -
fragmentationMethod
public int fragmentationMethod -
showContourOutline
public boolean showContourOutlineShow the full contour outline - not just the peak line -
keepShapeStubs
public boolean keepShapeStubsKeep short stubs sticking out of main contour. Using -ve of default so that old parameter sets go to default. Default is now to remove them. May 2021 -
stretchContours
public boolean stretchContoursOn long spec displays stretch the contour so that the start time is correct, but it then uses 1 pixel per fft bin. -
shortLength
public int shortLengthLength of short whistles. -
shortShowPolicy
public int shortShowPolicy
-
-
Constructor Details
-
WhistleToneParameters
public WhistleToneParameters()
-
-
Method Details
-
setDataSource
- Overrides:
setDataSource
in classGroupedSourceParameters
- Parameters:
dataSource
- the dataSource to set
-
getConnectType
public int getConnectType()- Returns:
- the connectType
-
setConnectType
public void setConnectType(int connectType) - Parameters:
connectType
- the connectType to set
-
getMinFrequency
public double getMinFrequency()- Returns:
- the minFrequency
-
setMinFrequency
public void setMinFrequency(double minFrequency) - Parameters:
minFrequency
- the minFrequency to set
-
getMaxFrequency
public double getMaxFrequency(double sampleRate) - Returns:
- the maxFrequency
-
setMaxFrequency
public void setMaxFrequency(double maxFrequency) - Parameters:
maxFrequency
- the maxFrequency to set
-
getSpecNoiseSettings
- Returns:
- the specNoiseSettings
-
setSpecNoiseSettings
- Parameters:
specNoiseSettings
- the specNoiseSettings to set
-
getParameterSet
Description copied from class:GroupedSourceParameters
Note that all the fields have getters, so even though they are private they will still be included in the output so we don't need to explicitly add them here- Specified by:
getParameterSet
in interfaceManagedParameters
- Overrides:
getParameterSet
in classGroupedSourceParameters
- Returns:
- description of the parameters in a class.
-
clone
- Overrides:
clone
in classGroupedSourceParameters
-
getBackgroundInterval
public double getBackgroundInterval()Interval in seconds between background noise measurements- Returns:
- the backgroundInterval
-
setBackgroundInterval
public void setBackgroundInterval(double backgroundInterval) Interval in seconds between background noise measurements- Parameters:
backgroundInterval
- the backgroundInterval to set
-