clickDetector.ClickClassifiers.basicSweep
Class SweepClassifier
java.lang.Object
clickDetector.ClickClassifiers.basicSweep.SweepClassifier
- All Implemented Interfaces:
- ClickIdentifier, PamSettings
public class SweepClassifier
- extends java.lang.Object
- implements ClickIdentifier, PamSettings
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clickDetector
private ClickDetector clickDetector
clickControl
private ClickControl clickControl
dialogPanel
private SweepClassifierPanel dialogPanel
sweepClassifierWorker
private SweepClassifierWorker sweepClassifierWorker
sweepClassifierParameters
protected SweepClassifierParameters sweepClassifierParameters
SweepClassifier
public SweepClassifier(ClickControl clickControl)
codeToListIndex
public int codeToListIndex(int code)
- Specified by:
codeToListIndex in interface ClickIdentifier
getMenuItem
public javax.swing.JMenuItem getMenuItem(java.awt.Frame parentFrame)
- Specified by:
getMenuItem in interface ClickIdentifier
getSpeciesList
public java.lang.String[] getSpeciesList()
- Specified by:
getSpeciesList in interface ClickIdentifier
getSymbol
public PamSymbol getSymbol(ClickDetection click)
- Specified by:
getSymbol in interface ClickIdentifier
findClicktypeSet
private SweepClassifierSet findClicktypeSet(int iSpeciesCode)
getSymbols
public PamSymbol[] getSymbols()
- Specified by:
getSymbols in interface ClickIdentifier
getDialogPanel
public ClassifyDialogPanel getDialogPanel(java.awt.Frame windowFrame)
- Specified by:
getDialogPanel in interface ClickIdentifier
getSpeciesName
public java.lang.String getSpeciesName(int code)
- Specified by:
getSpeciesName in interface ClickIdentifier
getSettingsReference
public java.io.Serializable getSettingsReference()
- Specified by:
getSettingsReference in interface PamSettings
- Returns:
- The serialisable object that will be stored
getSettingsVersion
public long getSettingsVersion()
- Specified by:
getSettingsVersion in interface PamSettings
- Returns:
- An integer version number for the settings
getUnitName
public java.lang.String getUnitName()
- Specified by:
getUnitName in interface PamSettings
- Returns:
- A Name specific to this instance of the particular class, e.g.
Sperm whale detector, Beaked whale detector, etc.
getUnitType
public java.lang.String getUnitType()
- Specified by:
getUnitType in interface PamSettings
- Returns:
- A Name specific to the type, e.g. Glick detector
restoreSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
- Specified by:
restoreSettings in interface PamSettings
- 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
public ClickDetector getClickDetector()
- Returns:
- the clickDetector
getNextFreeCode
protected int getNextFreeCode(int currCode)
getPrevFreeCode
protected int getPrevFreeCode(int currCode)
codeTaken
protected boolean codeTaken(int code)
codeDuplicated
public boolean codeDuplicated(SweepClassifierSet sweepClassifierSet,
int ignoreRow)
identify
public ClickIdInformation identify(ClickDetection click)
- Specified by:
identify in interface ClickIdentifier