Class WhistleShape

java.lang.Object
whistleDetector.WhistleShape
All Implemented Interfaces:
Comparable<WhistleShape>

public class WhistleShape extends Object implements Comparable<WhistleShape>
Author:
Doug Gillespie Structure for potential whistles created by the WhistleLinker
  • Method Details

    • addPeak

      public void addPeak(WhistlePeak peak)
      Add a new peak to the contour
      Parameters:
      peak - reference to a WhistlePeak
      See Also:
    • getSliceCount

      public int getSliceCount()
      Returns:
      The total number of FFT time partitions included in the contour
    • GetPeak

      public WhistlePeak GetPeak(int iP)
      Get the reference ot a peak at a specific reference
      Parameters:
      iP - Peak index within the contour
      Returns:
      peak reference
      See Also:
    • compareTo

      public int compareTo(WhistleShape w)
      Compare this whistle to that of another whistle
      Specified by:
      compareTo in interface Comparable<WhistleShape>
      Parameters:
      w - Reference to a different Whistle
      Returns:
      1 if this whistle is the longer of the two -1 otherwise.
    • getLastPeak

      public WhistlePeak getLastPeak()
    • getMaxFreq

      public int getMaxFreq()
    • getMinFreq

      public int getMinFreq()
    • getDBAmplitude

      public double getDBAmplitude()
      Returns:
      Returns the dBAmplitude.
    • setDBAmplitude

      public void setDBAmplitude(double amplitude)
      Parameters:
      amplitude - The dBAmplitude to set.