Class SegmenterDetectionGroup

All Implemented Interfaces:
Comparable<PamDataUnit>, PamDetection, AcousticDataUnit

public class SegmenterDetectionGroup extends GroupDetection<PamDataUnit>
A group of detection which are within a particular segment. This is used to pass detection groups straight to a classifier.
Author:
Jamie Macaulay
  • 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 the
      channelBitmap - - channels of all detections
      startSample - - the stratSample of the SEGMENT.
      duration - - the duration of the SEGMENT in milliseconds.
  • Method Details

    • isAllowSubdetectionSharing

      public boolean isAllowSubdetectionSharing()
      Overrides:
      isAllowSubdetectionSharing in class SuperDetection<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()