Class AbstractWhistleDataUnit

java.lang.Object
PamguardMVC.PamDataUnit<PamDataUnit,PamDataUnit>
whistlesAndMoans.AbstractWhistleDataUnit
All Implemented Interfaces:
Comparable<PamDataUnit>, PamDetection, AcousticDataUnit, WhistleContour
Direct Known Subclasses:
ConnectedRegionDataUnit, DelphinIDUtils.WhistleContourMAT, RWEDataUnit, ShapeDataUnit

public abstract class AbstractWhistleDataUnit extends PamDataUnit<PamDataUnit,PamDataUnit> implements WhistleContour, PamDetection
  • Constructor Details

    • AbstractWhistleDataUnit

      public AbstractWhistleDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration)
    • AbstractWhistleDataUnit

      public AbstractWhistleDataUnit(DataUnitBaseData basicData)
  • Method Details

    • getSliceCount

      public abstract int getSliceCount()
      Get the total number of slices
      Returns:
      total number of slices
    • getTimesInSeconds

      public abstract double[] getTimesInSeconds()
      Get an array of the times of each slice in seconds
      Specified by:
      getTimesInSeconds in interface WhistleContour
      Returns:
      times in seconds
    • getFreqsHz

      public abstract double[] getFreqsHz()
      Get an array of the peak frequencies in Hz.
      Specified by:
      getFreqsHz in interface WhistleContour
      Returns:
      peak frequencies in Hz.