Class SegmenterDetectionGroup
java.lang.Object
PamguardMVC.PamDataUnit<PamDataUnit,SuperDetection>
PamguardMVC.superdet.SuperDetection<PamDataUnit>
Localiser.detectionGroupLocaliser.GroupDetection<PamDataUnit>
rawDeepLearningClassifier.segmenter.SegmenterDetectionGroup
- All Implemented Interfaces:
Comparable<PamDataUnit>,PamDetection,AcousticDataUnit
- Direct Known Subclasses:
DLGroupDetection
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_OPENFields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, localisation -
Constructor Summary
ConstructorsConstructorDescriptionSegmenterDetectionGroup(long timeMilliseconds, int channelBitmap, long startSample, double duration) Constructor for a group of detections within a detection. -
Method Summary
Modifier and TypeMethodDescriptionfloatdoubleGet the segment duration in milliseconds.longlongGet the segment start milliseconds.doublebooleanvoidsetStartSecond(double timeS) Methods inherited from class Localiser.detectionGroupLocaliser.GroupDetection
addFitData, addSubDetection, getEventEndTime, getEventId, getGroupDetectionLocalisation, getPredictedBearing, getStatus, makeLocalisation, setEventEndTime, setEventId, setStatusMethods 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, sortSubDetectionsMethods 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, getGpsPosition, 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:
isAllowSubdetectionSharingin classSuperDetection<PamDataUnit>
-
getSegmentStartMillis
public long getSegmentStartMillis()Get the segment start milliseconds. Note that this can be quite different to the getTimeMillis() because getTimeMillis() returns the time millis of the first data unit. For a long data unit, like a whistle, the end can be in the segment but the start is significantly before the segment starts- Returns:
- the segment start in millis.
-
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() -
getSampleRate
public float getSampleRate()
-