Class SpecBackgroundDataUnit

All Implemented Interfaces:
Comparable

public class SpecBackgroundDataUnit extends BackgroundDataUnit
  • Constructor Details

    • SpecBackgroundDataUnit

      public SpecBackgroundDataUnit(long timeMilliseconds, long startSample, int channelBitmap, double durationMillis, int loBin, int hiBin, double[] data)
    • SpecBackgroundDataUnit

      public SpecBackgroundDataUnit(DataUnitBaseData basicData, int loBin, double[] data)
  • Method Details

    • getCountSPL

      public double getCountSPL()
      Specified by:
      getCountSPL in class BackgroundDataUnit
    • getCountSPL

      public double getCountSPL(int minFBin, int maxFBin)
      sum up the SPL within a range of bins
      Parameters:
      minFBin - Max bin (correct index for full spectrogram)
      maxFBin -
      Returns:
    • getLoBin

      public int getLoBin()
      Returns:
      the loBin
    • setLoBin

      public void setLoBin(int loBin)
      Parameters:
      loBin - the loBin to set
    • getHiBin

      public int getHiBin()
      Returns:
      the hiBin
    • setHiBin

      public void setHiBin(int hiBin)
      Parameters:
      hiBin - the hiBin to set
    • getData

      public double[] getData()
      Returns:
      the data
    • setData

      public void setData(int loBin, int hiBin, double[] data)
      Set all the data
      Parameters:
      loBin -
      hiBin -
      data -
    • setData

      public void setData(double[] data)
      Parameters:
      data - the data to set