Class SliceData

java.lang.Object
whistlesAndMoans.SliceData

public class SliceData extends Object
  • Method Details

    • getPeakBin

      public int getPeakBin()
    • getRmsAmplitude

      public double getRmsAmplitude()
    • setRmsAmplitude

      public void setRmsAmplitude()
    • getStartSample

      public long getStartSample()
    • getSliceNumber

      public int getSliceNumber()
    • getSliceLength

      public int getSliceLength()
    • getnPeaks

      public int getnPeaks()
    • getPeakInfo

      public int[][] getPeakInfo()
      Peak info is an n x 3 array of bin numbers for an FFT slice. Normally in a whistle, n=1, but there may be multiple peaks in a branched whistle in which case n will be higher. the 3 numbers for each peak are the low, peak and high bins of the contour.
      Returns:
      peak information.
    • getFftDataUnit

      public FFTDataUnit getFftDataUnit()
      Returns:
      the fftDataUnit associated with this slice
    • getUsefulBinRange

      public int[] getUsefulBinRange()
      Get a two element array of useful bin ranges following the convention used in the FFTDataUnit.getUsefulBinRange() whereby the upper limit is one greater than the actual used bin.
      Returns:
      bin range for future calculations
      See Also:
      • invalid @see
        FFTDataUnit.getUsefulBinRange