Class SegmenterDetectionGroup

All Implemented Interfaces:
Comparable<PamDataUnit>, PamDetection, AcousticDataUnit
Direct Known Subclasses:
DLGroupDetection

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 Link icon

    • SegmenterDetectionGroup Link icon

      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 Link icon

    • isAllowSubdetectionSharing Link icon

      public boolean isAllowSubdetectionSharing()
      Overrides:
      isAllowSubdetectionSharing in class SuperDetection<PamDataUnit>
    • getSegmentStartMillis Link icon

      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 Link icon

      public double getSegmentDuration()
      Get the segment duration in milliseconds.
      Returns:
      the segment duration in millis.
    • getSegmentEndMillis Link icon

      public long getSegmentEndMillis()
    • setStartSecond Link icon

      public void setStartSecond(double timeS)
    • getStartSecond Link icon

      public double getStartSecond()
    • getSampleRate Link icon

      public float getSampleRate()