Class CTDetectionGroupDataUnit

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

public abstract class CTDetectionGroupDataUnit extends DetectionGroupDataUnit implements PamDetection
Base class for a click train data unit. Note this must implrement PamDetection to work with the clip generator.
Author:
Jamie Macaulay
  • Constructor Details

    • CTDetectionGroupDataUnit

      public CTDetectionGroupDataUnit(long timeMilliseconds, List<PamDataUnit> list)
  • Method Details

    • addSubDetections

      public int addSubDetections(List<PamDataUnit> list)
      Description copied from class: SuperDetection
      Add multiple sub detections from a list.
      Overrides:
      addSubDetections in class SuperDetection<PamDataUnit>
      Parameters:
      list - List of new sub detections
      Returns:
      total number of sub detections now in the super detection
    • calcStartSample

      public void calcStartSample()
      Calculate a valid start sample. This is important for the clip generator.
    • calcSummaryUnits

      public void calcSummaryUnits(CTSelectParams ctDataUnitParams)
      Update the data unit list. The summary data units are used to represent a click train with a sub set of data units; usually this is for plotting purposes but could also be used for sending data where bandwidth is limited e.g. satellite or 4G.
      Parameters:
      ctDataUnit - the data unit list.
    • calcMinMaxAng

      public void calcMinMaxAng()
      Calculate the minimum and maximum angle of the whole click train.
    • clearSummaryDataUnits

      public void clearSummaryDataUnits()
      Clear data units from the summary list
    • getSummaryUnits

      public ArrayList<PamDataUnit> getSummaryUnits()
      Get the summary data units from the last calculation.
      Returns:
      summary data units.
    • getAngleRange

      public double getAngleRange()
      Get the angle range in RADIANS.
      Returns:
      the angle range.