Class SweepClassifier
java.lang.Object
clickDetector.ClickClassifiers.basicSweep.SweepClassifier
- All Implemented Interfaces:
 ClickIdentifier,ClickTypeProvider,PamSettings,SettingsNameProvider
An improvements on the BasicClickIdentifier based on work by 
 Gillespie and Caillat in 2009. 
 Click length is now measured based on the envelope waveform 
 rather than a measure of total energy
 Have also added some parameters extracted from zero crossings
 and will include better diagnostic plots and histograms.
- Author:
 - Doug Gillespie
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancodeDuplicated(SweepClassifierSet sweepClassifierSet, int ignoreRow) protected booleancodeTaken(int code) intcodeToListIndex(int code) Returns the index in the list for the click type.A pane which holds specific settings for the click classifier type selected.doublegetClickLength(ClickDetection click) Returns the click length, using the times returned by the SweepClassifierWorker method getLengthData.int[]Returns a list of the currently-defined click types / species codesgetCommonParams(int code) Return the superclass of the click type parameters class - currently used for accessing the alarm functions.getDialogPanel(Frame windowFrame) getMenuItem(Frame parentFrame) intgetNextFreeCode(int currCode) getParamsInfo(ClickDetection click) double[]getPeakSearchRange(ClickDetection click) Returns the frequency search range defined for peak frequency testing 2014/08/03 MO Split the function to first check for a valid click type set.protected intgetPrevFreeCode(int currCode) longString[]Get a list of species names.getSpeciesName(int code) Get the params for the sweep classifier.getSymbol(ClickDetection click) Get symbols for each click type.Get a list of symbols for each species corresponding to getSpeciesList.Returns the zeroCrossingStats variable, used as an identifier in the Rocca interface.identify(ClickDetection click) Identify a click detection as a click type.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidsetSweepClassifierParameters(SweepClassifierParameters sweepClassifierParameters) voidsetSweepClassifierParams(SweepClassifierParameters sweepClassifierParameters) Set the params for the sweep classifier. 
- 
Field Details
- 
sweepClassifierParameters
 
 - 
 - 
Constructor Details
- 
SweepClassifier
 
 - 
 - 
Method Details
- 
getSweepClassifierParameters
 - 
setSweepClassifierParameters
 - 
codeToListIndex
public int codeToListIndex(int code) Description copied from interface:ClickTypeProviderReturns the index in the list for the click type.- Specified by:
 codeToListIndexin interfaceClickTypeProvider- Parameters:
 code- - the click type code- Returns:
 - the index.
 
 - 
getMenuItem
- Specified by:
 getMenuItemin interfaceClickIdentifier
 - 
getSpeciesList
Description copied from interface:ClickTypeProviderGet a list of species names.- Specified by:
 getSpeciesListin interfaceClickTypeProvider- Returns:
 - list speces names.
 
 - 
getCodeList
public int[] getCodeList()Returns a list of the currently-defined click types / species codes- Specified by:
 getCodeListin interfaceClickTypeProvider- Returns:
 - int array with the codes
 
 - 
getSymbol
- Specified by:
 getSymbolin interfaceClickIdentifier
 - 
getCommonParams
Return the superclass of the click type parameters class - currently used for accessing the alarm functions. Subclasses include ClickTypeParams and SweepClassifierSet.- Specified by:
 getCommonParamsin interfaceClickIdentifier- Parameters:
 code- the click type to check- Returns:
 - the ClickTypeCommonParams object related to the species code
 
 - 
getSymbols
Description copied from interface:ClickIdentifierGet symbols for each click type.- Specified by:
 getSymbolsin interfaceClickIdentifier- Returns:
 - the symbols for type.
 
 - 
getDialogPanel
- Specified by:
 getDialogPanelin interfaceClickIdentifier
 - 
getSpeciesName
- Specified by:
 getSpeciesNamein interfaceClickIdentifier
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
getUnitName
- Specified by:
 getUnitNamein interfaceSettingsNameProvider- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- Returns:
 - true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
 
 - 
getClickDetector
- Returns:
 - the clickDetector
 
 - 
getNextFreeCode
public int getNextFreeCode(int currCode)  - 
getPrevFreeCode
protected int getPrevFreeCode(int currCode)  - 
codeTaken
protected boolean codeTaken(int code)  - 
codeDuplicated
 - 
getSweepClassifierParams
Get the params for the sweep classifier.- Returns:
 - the sweep classifier params.
 
 - 
setSweepClassifierParams
Set the params for the sweep classifier. - 
identify
Description copied from interface:ClickIdentifierIdentify a click detection as a click type.- Specified by:
 identifyin interfaceClickIdentifier- Parameters:
 click- - the click to identfy.- Returns:
 - the click to
 
 - 
getParamsInfo
- Specified by:
 getParamsInfoin interfaceClickIdentifier
 - 
getZeroCrossingStats
Returns the zeroCrossingStats variable, used as an identifier in the Rocca interface. 2014/07/25 MO- Specified by:
 getZeroCrossingStatsin interfaceClickIdentifier- Parameters:
 click- the Click Detection- Returns:
 - the ZeroCrossingStats variable
 
 - 
getPeakSearchRange
Returns the frequency search range defined for peak frequency testing 2014/08/03 MO Split the function to first check for a valid click type set. In the case of an unclassified click, findClicktypeSet(click.getClickType()) returns a null and causes a NullPointerException error. serialVersionUID = 21 2015/05/31- Specified by:
 getPeakSearchRangein interfaceClickIdentifier- Parameters:
 click- the Click Detection- Returns:
 - the min/max of the search range
 
 - 
getClickLength
Returns the click length, using the times returned by the SweepClassifierWorker method getLengthData. If there is an error, a 0 is returned. Note that this defaults to the first channel. 2014/10/13 MO- Specified by:
 getClickLengthin interfaceClickIdentifier- Parameters:
 click- the current click detection- Returns:
 - the duration of the click, in seconds
 
 - 
getClassifierPane
Description copied from interface:ClickIdentifierA pane which holds specific settings for the click classifier type selected.- Specified by:
 getClassifierPanein interfaceClickIdentifier- Returns:
 - the classifier pane
 
 - 
getSymbolsData
Description copied from interface:ClickTypeProviderGet a list of symbols for each species corresponding to getSpeciesList.- Specified by:
 getSymbolsDatain interfaceClickTypeProvider- Returns:
 - list of species symbols.
 
 
 -