Package clickDetector.basicalgorithm
Class TriggerBackgroundDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
clickDetector.basicalgorithm.TriggerBackgroundDataUnit
- All Implemented Interfaces:
Comparable
-
Constructor Summary
ConstructorDescriptionTriggerBackgroundDataUnit
(long timeMilliseconds, int channelBitmap, double[] backgroundData) TriggerBackgroundDataUnit
(DataUnitBaseData baseData, double[] backgroundData) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
double[]
double
void
setAbsoluteAmplitudes
(double[] absoluteAmplitudes) void
setBackgroundData
(double[] backgroundData) 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
-
TriggerBackgroundDataUnit
public TriggerBackgroundDataUnit(long timeMilliseconds, int channelBitmap, double[] backgroundData) -
TriggerBackgroundDataUnit
-
-
Method Details
-
getBackgroundData
public double[] getBackgroundData()- Returns:
- the backgroundData
-
getAbsoluteAmplitudes
public double[] getAbsoluteAmplitudes()- Returns:
- values in dB re 1uPa using PAMGuard calibration data.
-
setAbsoluteAmplitudes
public void setAbsoluteAmplitudes(double[] absoluteAmplitudes) - Parameters:
absoluteAmplitudes
- the absoluteAmplitudes to set
-
setBackgroundData
public void setBackgroundData(double[] backgroundData) - Parameters:
backgroundData
- the backgroundData to set
-
getMaxValue
public double getMaxValue()- Returns:
- the largest value. should all be positive so no need to check for negative values.
-