|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclickDetector.OldClickClass
public class OldClickClass
Contains a snap shot of wave data representing the click (this may or may not have been filtered). Also contains the basic data included in clicks created by RainbowClick
ClickDetector| Field Summary | |
|---|---|
private double[] |
amplitude
|
(package private) int |
channelList
|
(package private) ClickDetector |
clickDetector
|
(package private) long |
clickNumber
|
(package private) byte |
clickType
|
private Complex[][] |
complexSpectrum
|
private int |
currentSpectrumLength
|
(package private) byte |
dataType
|
private double |
dBamplitude
|
private int |
delay
|
(package private) int |
duration
|
(package private) int |
eventId
|
(package private) long |
filePos
|
(package private) int |
flags
|
(package private) double |
ICI
|
(package private) int |
nChan
|
private double[][] |
powerSpectra
|
(package private) long |
startSample
|
private double[] |
totalPowerSpectrum
|
(package private) boolean |
tracked
|
(package private) int |
triggerList
|
private double[][] |
waveData
|
| Constructor Summary | |
|---|---|
OldClickClass(ClickDetector clickDetector,
long startSample,
int nChan,
long duration,
int channelList,
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 |
void |
freeClickMemory()
|
double |
getAmplitude(int channel)
|
double |
getAngle(float sampleRate)
Gets the angle to a click from the time delay on two hydrophones based on sound speed. |
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()
|
double |
getDBamplitude()
|
int |
getDelay()
|
int |
getEventId()
|
double |
getMeanAmplitude()
|
int |
getNChan()
|
double[] |
getPowerSpectrum(int channel,
int fftLength)
Returns the power spectum for a given channel (square of magnitude of complex spectrum) |
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 channel)
|
double |
inBandEnergy(double[] freqs)
Calculates the total energy within a particular frequency band |
boolean |
isTracked()
|
double |
peakFrequency(double[] searchRange)
|
double |
peakFrequencyWidth(double peakFrequency,
double percent)
|
void |
setAmplitude(int channel,
double amplitude)
|
void |
setDBamplitude(double bamplitude)
|
void |
setDelay(int delay)
|
void |
setEventId(int eventId)
|
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 |
|---|
long clickNumber
long startSample
int duration
int nChan
int channelList
int triggerList
private double[][] waveData
private int delay
boolean tracked
private double[] amplitude
private double dBamplitude
int flags
byte dataType
long filePos
byte clickType
ClickDetector clickDetector
int eventId
double ICI
private double[][] powerSpectra
private double[] totalPowerSpectrum
private Complex[][] complexSpectrum
private int currentSpectrumLength
| Constructor Detail |
|---|
public OldClickClass(ClickDetector clickDetector,
long startSample,
int nChan,
long duration,
int channelList,
int triggerList)
| Method Detail |
|---|
public boolean isTracked()
public void setTracked(boolean tracked)
public int getEventId()
public void setEventId(int eventId)
public double getAngle(float sampleRate)
sampleRate -
public Complex[] getComplexSpectrum(int channel)
channel -
public Complex[] getComplexSpectrum(int channel,
int fftLength)
channel - fftLength -
public int getCurrentSpectrumLength()
public double[] getPowerSpectrum(int channel,
int fftLength)
channel - fftLength -
public double[] getTotalPowerSpectrum(int fftLength)
fftLength -
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 getAmplitude(int channel)
public void setAmplitude(int channel,
double amplitude)
public double[] getWaveData(int channel)
public double[][] getWaveData()
public void setWaveData(double[][] waveData)
public void freeClickMemory()
public double getMeanAmplitude()
public double getDBamplitude()
public void setDBamplitude(double bamplitude)
bamplitude - The dBamplitude to set.public int getDelay()
public void setDelay(int delay)
delay - The delay to set.public int getNChan()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||