Package gpl.contour

Class GPLContour

java.lang.Object
gpl.contour.GPLContour
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
NullGPLContour

public class GPLContour extends Object implements Cloneable
  • Constructor Details Link icon

    • GPLContour Link icon

      public GPLContour(int iT, int iF, double signalExcess, double energy)
  • Method Details Link icon

    • makeNullContour Link icon

      public static GPLContour makeNullContour()
      Make a null contour. not to be used for ANYTHING but a pla
      Returns:
    • addContourPoint Link icon

      public void addContourPoint(int iT, int iF, double signalExcess, double energy)
      Add a contour point
      Parameters:
      iT - time bin
      iF - frequency bin
      dataValue - whitened data value.
    • addContourPoint Link icon

      public void addContourPoint(GPLContourPoint contourPoint)
      Add a contour point
      Parameters:
      contourPoint -
    • getArea Link icon

      public int getArea()
      Get the area of the contour
      Returns:
    • sortContourPoints Link icon

      public void sortContourPoints()
      sort the points in the contour by time and frequency.
    • getTotalExcess Link icon

      public double getTotalExcess()
      This is the sum of the whitened data in the contour. Has no rational scale.
      Returns:
      sum of whitened levels
    • getTotalEnergy Link icon

      public double getTotalEnergy()
      This is the sum^2 of every FFT point that formed part of the contour.
      Returns:
      total energy in contour, scaled to counts
    • getOutline Link icon

      public int[][] getOutline()
    • getOutline Link icon

      public int[][] getOutline(int binOffset)
    • getContourPoints Link icon

      public ArrayList<GPLContourPoint> getContourPoints()
      Time is from the start of the call, Frequency is referenced to the full spectrum, not just the detection band, so 0 represents 0 Hz and FFTLen/2 is Nyquist.
      Returns:
      the contourPoints
    • getMinFBin Link icon

      public int getMinFBin()
      Referenced to the full spectrum, not just the detection band, so 0 represents 0 Hz and FFTLen/2 is Nyquist.
      Returns:
      the minFBin
    • getMaxFBin Link icon

      public int getMaxFBin()
      Referenced to the full spectrum, not just the detection band, so 0 represents 0 Hz and FFTLen/2 is Nyquist.
      Returns:
      the maxFBin
    • getMinTBin Link icon

      public int getMinTBin()
      Returns:
      the minTBin
    • getMaxTBin Link icon

      public int getMaxTBin()
      Returns:
      the maxTBin
    • getBinsDuration Link icon

      public int getBinsDuration()
      Get how long the sound was in FFT slices.
      Returns:
    • shiftTimeBins Link icon

      public void shiftTimeBins()
      shift the contour so that everything is referenced to a first time bin of 0.
    • setTotalExcess Link icon

      public void setTotalExcess(double totalExcess)
      Parameters:
      totalExcess - the totalExcess to set
    • setTotalEnergy Link icon

      public void setTotalEnergy(double totalEnergy)
      Parameters:
      totalEnergy - the totalEnergy to set