Class SegmenterDetectionGroup
java.lang.Object
PamguardMVC.PamDataUnit<T,SuperDetection>
PamguardMVC.superdet.SuperDetection<T>
Localiser.detectionGroupLocaliser.GroupDetection<PamDataUnit>
rawDeepLearningClassifier.segmenter.SegmenterDetectionGroup
- All Implemented Interfaces:
Comparable<PamDataUnit>
,PamDetection
,AcousticDataUnit
A group of detection which are within a particular segment. This is used to pass detection groups straight to a classifier.
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from class Localiser.detectionGroupLocaliser.GroupDetection
STATUS_CLOSED, STATUS_OPEN
-
Constructor Summary
ConstructorDescriptionSegmenterDetectionGroup
(long timeMilliseconds, int channelBitmap, long startSample, double duration) Constructor for a group of detections within a detection. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the segment duration in milliseconds.long
long
double
boolean
void
setStartSecond
(double timeS) Methods inherited from class Localiser.detectionGroupLocaliser.GroupDetection
addFitData, addSubDetection, getEventEndTime, getEventId, getGroupDetectionLocalisation, getPredictedBearing, getStatus, makeLocalisation, setEventEndTime, setEventId, setStatus
Methods inherited from class PamguardMVC.superdet.SuperDetection
addSubDetectionInfo, addSubDetections, clearSubDetectionData, clearSubDetectionObjects, clearSubdetectionsRemoved, findSubDetection, findSubDetection, findSubDetection, findSubdetectionInfo, findSubDetectionInfo, getLoadedSubDetectionsCount, getPresentSubDetections, getSubDetection, getSubdetectionInfo, getSubDetectionInfo, getSubDetections, getSubDetectionsCount, getSubdetectionsRemoved, getSubDetectionSyncronisation, removeAllSubDetections, removeSubDetection, replaceSubDetection, sortSubDetections
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
-
SegmenterDetectionGroup
public SegmenterDetectionGroup(long timeMilliseconds, int channelBitmap, long startSample, double duration) Constructor for a group of detections within a detection. Note that some longer detections (e.g. whistles) may have sections outside the segment.- Parameters:
timeMilliseconds
- - this is the start of the SEGMENT - Note that thechannelBitmap
- - channels of all detectionsstartSample
- - the stratSample of the SEGMENT.duration
- - the duration of the SEGMENT in milliseconds.
-
-
Method Details
-
isAllowSubdetectionSharing
public boolean isAllowSubdetectionSharing()- Overrides:
isAllowSubdetectionSharing
in classSuperDetection<PamDataUnit>
-
getSegmentStartMillis
public long getSegmentStartMillis() -
getSegmentDuration
public double getSegmentDuration()Get the segment duration in milliseconds.- Returns:
- the segment duration in millis.
-
getSegmentEndMillis
public long getSegmentEndMillis() -
setStartSecond
public void setStartSecond(double timeS) -
getStartSecond
public double getStartSecond()
-