public class ClipDataUnit extends PamDetection<PamDetection,PamDetection>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
fileName |
long |
triggerMilliseconds |
java.lang.String |
triggerName |
AMPLITUDE_SCALE_DBREMPA, AMPLITUDE_SCALE_LINREFSD
Constructor and Description |
---|
ClipDataUnit(long timeMilliseconds,
long triggerMilliseconds,
long startSample,
int durationSamples,
int channelMap,
java.lang.String fileName,
java.lang.String triggerName,
double[][] rawData,
float sourceSampleRate)
Constructor to use if storing data into the binary system.
|
Modifier and Type | Method and Description |
---|---|
void |
clearClipSpecData()
Clear existing clip spectrogram data.
|
Complex[][] |
generateComplexSpectrogram(int channel,
int fftLength,
int fftHop)
Generate complex spectrogram data for the clip.
|
java.awt.image.BufferedImage |
getClipImage(int channel,
int fftLength,
int fftHop,
double scaleMin,
double scaleMax,
java.awt.Color[] colorTable) |
float |
getDisplaySampleRate() |
double[][] |
getRawData() |
float |
getSourceSampleRate() |
double[][] |
getSpectrogramData(int channel,
int fftLength,
int fftHop)
get spectrogram data for the clip.
|
long |
getTriggerMilliseconds() |
void |
setRawData(double[][] rawData) |
addSubDetection, addSuperDetection, findSubDetection, getDetectionType, getEventEndTime, getPeakTime, getSubDetection, getSubDetectionsCount, getSubDetectionSyncronisation, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, removeSubDetection, removeSuperDetection, replaceSubDetection, setDetectionType, setEventEndTime, setPeakTime, setUniqueSuperDetection
amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, compareTo, getAmplitudeDB, getCalculatedAmlitudeDB, getDuration, getFrequency, getFrequencyOverlap, getLastSample, getMeasuredAmplitude, getMeasuredAmplitudeType, getSeconds, getStartSample, getSummaryString, getTimeOverlap, setCalculatedAmlitudeDB, setDuration, setFrequency, setInfo, setMeasuredAmplitude, setMeasuredAmplitude, setMeasuredAmplitudeType, setStartSample
addDataAnnotation, clearOandAngles, clearUpdateCount, findDataAnnotation, getAbsBlockIndex, getChannelBitmap, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDetectionMatch, getDetectionMatch, getHydrophoneHeading, getLastUpdateTime, getLocalisation, getNumDataAnnotations, getOriginLatLong, getPairAngle, getParentDataBlock, getTimeMilliseconds, getUpdateCount, removeDataAnnotation, removeDataAnnotation, setAbsBlockIndex, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setLastUpdateTime, setLocalisation, setOriginLatLong, setParentDataBlock, setTimeMilliseconds, updateDataUnit
public java.lang.String fileName
public java.lang.String triggerName
public long triggerMilliseconds
public ClipDataUnit(long timeMilliseconds, long triggerMilliseconds, long startSample, int durationSamples, int channelMap, java.lang.String fileName, java.lang.String triggerName, double[][] rawData, float sourceSampleRate)
timeMilliseconds
- triggerMilliseconds
- startSample
- durationSamples
- channelMap
- fileName
- triggerName
- rawData
- public java.awt.image.BufferedImage getClipImage(int channel, int fftLength, int fftHop, double scaleMin, double scaleMax, java.awt.Color[] colorTable)
public void clearClipSpecData()
public double[][] getSpectrogramData(int channel, int fftLength, int fftHop)
fftLength
- FFT lengthfftHop
- FFT hoppublic Complex[][] generateComplexSpectrogram(int channel, int fftLength, int fftHop)
channel
- fftLength
- FFT lengthfftHop
- FFT hoppublic long getTriggerMilliseconds()
public double[][] getRawData()
public void setRawData(double[][] rawData)
rawData
- the rawData to setpublic final float getSourceSampleRate()
public float getDisplaySampleRate()