|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamguardMVC.PamDataUnit
PamDetection.AcousticDataUnit
PamDetection.PamDetection<PamDetection,PamDetection>
clickDetector.ClickDetection
public class ClickDetection
Class for Click Detector clicks.
| Field Summary | |
|---|---|
private double[] |
amplitude
|
private double[][] |
analyticWaveform
|
protected ClickDetector.ChannelGroupDetector |
channelGroupDetector
|
static int |
CLICK_CLICK
|
static int |
CLICK_NOISEWAVE
|
private ClickDetector |
clickDetector
|
private ClickLocalisation |
clickLocalisation
|
(package private) long |
clickNumber
Click number in list. |
private byte |
clickType
Click species. |
private Complex[][] |
complexSpectrum
|
private int |
currentSpectrumLength
|
(package private) byte |
dataType
Click data type |
private double[] |
delays
|
(package private) boolean |
discard
|
(package private) int |
eventId
|
protected long |
filePos
|
(package private) int |
flags
|
(package private) double |
ICI
|
private int |
nChan
|
private int |
nDelays
|
private double[][] |
powerSpectra
|
private int |
shortestFFTLength
|
private double[] |
totalPowerSpectrum
|
(package private) boolean |
tracked
|
(package private) int |
triggerList
|
private double[][] |
waveData
|
| Fields inherited from class PamDetection.AcousticDataUnit |
|---|
AMPLITUDE_SCALE_DBREMPA, AMPLITUDE_SCALE_LINREFSD, duration, frequency, startSample |
| Fields inherited from class PamguardMVC.PamDataUnit |
|---|
absBlockIndex, channelBitmap, localisation, oLL, timeMilliseconds |
| Constructor Summary | |
|---|---|
ClickDetection()
|
|
ClickDetection(int channelBitmap,
long startSample,
long duration,
ClickDetector clickDetector,
ClickDetector.ChannelGroupDetector channelGroupDetector,
int triggerList)
|
|
| Method Summary | |
|---|---|
double |
clickLength(double percent)
Calculates the length of a click in seconds averaged over all channels |
double |
clickLength(int channel,
double percent)
Calculates the length of a click in seconds for a particular channel |
private AcquisitionControl |
findDaqControl()
|
void |
freeClickMemory()
|
double |
getAmplitude(int channel)
|
double[] |
getAnalysticWaveform(int iChan)
Get the analytic waveform for a given channel |
double |
getAngle()
Returns the angle in degress for compatibilty with older version of click detector |
ClickDetector |
getClickDetector()
|
ClickLocalisation |
getClickLocalisation()
|
byte |
getClickType()
|
Complex[] |
getComplexSpectrum(int channel)
Returns the complex spectrum for a given channel using the shortest possible FFT length |
Complex[] |
getComplexSpectrum(int channel,
int fftLength)
Returns the complex spectrum for a given channel using a set FFT length |
int |
getCurrentSpectrumLength()
|
byte |
getDataType()
|
double[] |
getDelays()
return a list of delays. |
int |
getEventId()
|
double |
getMeanAmplitude()
|
double |
getMeanFrequency(double[] searchRange)
|
int |
getNChan()
|
double[] |
getPowerSpectrum(int channel)
Get the power spectrum of the entire click. |
double[] |
getPowerSpectrum(int channel,
int fftLength)
Returns the power spectrum for a given channel (square of magnitude of complex spectrum) |
int |
getShortestFFTLength()
|
private int |
getSpikeWidth(double[] data,
int peakPos,
double percent)
Calculates the width of a peak - either time or frequency data |
double[] |
getTotalPowerSpectrum(int fftLength)
Returns the sum of the power spectra for all channels |
double[][] |
getWaveData()
|
double[] |
getWaveData(int channelIndex)
Get raw waveform data for a given click channel index. |
boolean |
hasComplexSpectrum()
Find out whether there are complex spectrum data - and if there are, data may get cleaned up. |
double |
inBandEnergy(double[] freqs)
Calculates the total energy within a particular frequency band |
boolean |
isTracked()
|
private void |
makeClickLocalisation()
|
double |
peakFrequency(double[] searchRange)
|
double |
peakFrequencyWidth(double peakFrequency,
double percent)
|
void |
setAmplitude(int channel,
double amplitude)
Set the amplitude for a given channel |
void |
setChannelBitmap(int channelBitmap)
|
void |
setClickDetector(ClickDetector clickDetector)
|
void |
setClickLocalisation(ClickLocalisation clickLocalisation)
|
void |
setClickType(byte clickType)
|
void |
setDataType(byte dataType)
|
void |
setDelay(int iDelay,
double delay)
Set the time of arrival delay in samples. |
void |
setDelayCorrection(double delayCorrection)
Set the correction to the delay in fractions of a sample (derived from quadratic interpolation around the peak of the cross correlation function) |
void |
setEventId(int eventId)
|
private void |
setReferenceHydrophones(int channelMap)
|
void |
setTracked(boolean tracked)
|
void |
setWaveData(double[][] waveData)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CLICK_CLICK
public static final int CLICK_NOISEWAVE
long clickNumber
int triggerList
private double[][] waveData
private double[] amplitude
boolean tracked
int flags
byte dataType
protected long filePos
private byte clickType
private ClickDetector clickDetector
int eventId
boolean discard
double ICI
private double[][] powerSpectra
private double[] totalPowerSpectrum
private Complex[][] complexSpectrum
private int currentSpectrumLength
private double[][] analyticWaveform
private int nChan
private int shortestFFTLength
private ClickLocalisation clickLocalisation
private int nDelays
private double[] delays
protected ClickDetector.ChannelGroupDetector channelGroupDetector
| Constructor Detail |
|---|
public ClickDetection(int channelBitmap,
long startSample,
long duration,
ClickDetector clickDetector,
ClickDetector.ChannelGroupDetector channelGroupDetector,
int triggerList)
public ClickDetection()
| Method Detail |
|---|
public int getShortestFFTLength()
public boolean isTracked()
public void setTracked(boolean tracked)
public int getEventId()
public void setEventId(int eventId)
public Complex[] getComplexSpectrum(int channel)
channel -
public Complex[] getComplexSpectrum(int channel,
int fftLength)
channel - fftLength -
public boolean hasComplexSpectrum()
public int getCurrentSpectrumLength()
public double[] getPowerSpectrum(int channel)
channel - channel number
public double[] getPowerSpectrum(int channel,
int fftLength)
channel - channel numberfftLength -
public double[] getTotalPowerSpectrum(int fftLength)
fftLength -
public double[] getAnalysticWaveform(int iChan)
iChan - channel index
public double inBandEnergy(double[] freqs)
freqs -
BasicClickIdentifierpublic double clickLength(double percent)
percent - Fraction of total click energy to use in the calculation
BasicClickIdentifier
public double clickLength(int channel,
double percent)
channel - percent - Fraction of total click energy to use in the calculation
BasicClickIdentifier
private int getSpikeWidth(double[] data,
int peakPos,
double percent)
data - peakPos - percent -
public double peakFrequency(double[] searchRange)
public double peakFrequencyWidth(double peakFrequency,
double percent)
public double getMeanFrequency(double[] searchRange)
public double[] getWaveData(int channelIndex)
channelIndex - channel index
public double[][] getWaveData()
public void setWaveData(double[][] waveData)
public void freeClickMemory()
public void setDelay(int iDelay,
double delay)
delay - delay in samplespublic double[] getDelays()
public void setDelayCorrection(double delayCorrection)
delayCorrection - delay correction
public void setAmplitude(int channel,
double amplitude)
channel - channel numberamplitude - amplitudepublic double getAmplitude(int channel)
public double getAngle()
public double getMeanAmplitude()
private void makeClickLocalisation()
private void setReferenceHydrophones(int channelMap)
private AcquisitionControl findDaqControl()
public ClickLocalisation getClickLocalisation()
public void setClickLocalisation(ClickLocalisation clickLocalisation)
public int getNChan()
public void setChannelBitmap(int channelBitmap)
setChannelBitmap in class PamDataUnitpublic void setClickType(byte clickType)
clickType - the clickType (click species) to setpublic byte getClickType()
public byte getDataType()
public void setDataType(byte dataType)
dataType - the type of data - click, noise, etc.public void setClickDetector(ClickDetector clickDetector)
clickDetector - the clickDetector to setpublic ClickDetector getClickDetector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||