Package PamguardMVC.background
Class SpecBackgroundDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
PamguardMVC.background.BackgroundDataUnit
PamguardMVC.background.SpecBackgroundDataUnit
- All Implemented Interfaces:
Comparable
-
Constructor Summary
ConstructorDescriptionSpecBackgroundDataUnit
(long timeMilliseconds, long startSample, int channelBitmap, double durationMillis, int loBin, int hiBin, double[] data) SpecBackgroundDataUnit
(DataUnitBaseData basicData, int loBin, double[] data) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
getCountSPL
(int minFBin, int maxFBin) sum up the SPL within a range of binsdouble[]
getData()
int
getHiBin()
int
getLoBin()
void
setData
(double[] data) void
setData
(int loBin, int hiBin, double[] data) Set all the datavoid
setHiBin
(int hiBin) void
setLoBin
(int loBin) Methods inherited from class PamguardMVC.background.BackgroundDataUnit
getAbsSLP
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
-
SpecBackgroundDataUnit
public SpecBackgroundDataUnit(long timeMilliseconds, long startSample, int channelBitmap, double durationMillis, int loBin, int hiBin, double[] data) -
SpecBackgroundDataUnit
-
-
Method Details
-
getCountSPL
public double getCountSPL()- Specified by:
getCountSPL
in classBackgroundDataUnit
-
getCountSPL
public double getCountSPL(int minFBin, int maxFBin) sum up the SPL within a range of bins- Parameters:
minFBin
- Max bin (correct index for full spectrogram)maxFBin
-- Returns:
-
getLoBin
public int getLoBin()- Returns:
- the loBin
-
setLoBin
public void setLoBin(int loBin) - Parameters:
loBin
- the loBin to set
-
getHiBin
public int getHiBin()- Returns:
- the hiBin
-
setHiBin
public void setHiBin(int hiBin) - Parameters:
hiBin
- the hiBin to set
-
getData
public double[] getData()- Returns:
- the data
-
setData
public void setData(int loBin, int hiBin, double[] data) Set all the data- Parameters:
loBin
-hiBin
-data
-
-
setData
public void setData(double[] data) - Parameters:
data
- the data to set
-