Class ThresholdDetectorDataUnit
- All Implemented Interfaces:
Comparable<PamDataUnit>
,PamDetection
,AcousticDataUnit
Along with the constructor's parameters (see its documentation for those), we also set the following properties of the PamDetection before sending it on its way:
MeasuredAmplitude - The peak value (in Decibels, 10*log10() ) of the Likelihood Ratio. The likelihood ratio is the signal estimate/background noise estimate
PeakTime - The time of the peak value described above. This value is in double precision seconds since the beginning of the data capture.
Frequency - This is a double[2] describing a frequency range. frequency[0] is the low frequency, frequency[1] the high frequency. These values are taken verbatim from the target configuration as entered by the user, not calculated from the actual detection region.
DetectionType - A string uniquely identifying the detection. We concatenate the configuration name with the signal band name which the detection occurred within. For example "Bowhead - End Note"; Bowhead is the configuration name, and End Note is the signal band.
EstimatedPeakTimeAccuracy - The estimated accuracy of our PeakTime property to help with localization calculations. This value is in seconds (double precision) and is currently set to the spectral processing time resolution.
- Author:
- Dave Flogeras
-
Constructor Summary
ConstructorDescriptionThresholdDetectorDataUnit
(long timeMilliseconds, int channelBitmap, long startSample, long duration) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
void
setDetectionType
(String detectionType) void
setEstimatedPeakTimeAccuracy
(double p) void
setPeakTime
(double peakTimeMsec) Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequency, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSummaryString, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit
-
Constructor Details
-
ThresholdDetectorDataUnit
public ThresholdDetectorDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration) - Parameters:
timeMilliseconds
- The time in milliseconds of the start of the detection.channelBitmap
- The channel that this detection was triggered on.startSample
- The sample number of the start of this detection. This is in terms of the raw sampled data from the data source.duration
- The duration of the detection, also in terms of raw input data samples.
-
-
Method Details
-
setEstimatedPeakTimeAccuracy
public void setEstimatedPeakTimeAccuracy(double p) -
getEstimatedPeakTimeAccuracy
public double getEstimatedPeakTimeAccuracy() -
getDetectionType
- Returns:
- Returns the detectionType.
-
setDetectionType
- Parameters:
detectionType
- The detectionType to set.
-
getPeakTime
public double getPeakTime()- Returns:
- Returns the peakTime, in msec. relative to the start of the PAMGUARD run
-
setPeakTime
public void setPeakTime(double peakTimeMsec) - Parameters:
peakTimeMsec
- The peakTime to set, in msec. relative to the start of the PAMGUARD run.
-