Package Spectrogram

Class TimeFrequencyPoint

java.lang.Object
Spectrogram.TimeFrequencyPoint
All Implemented Interfaces:
PamCoordinate

public class TimeFrequencyPoint extends Object implements PamCoordinate
  • Constructor Details

    • TimeFrequencyPoint

      public TimeFrequencyPoint(long timeMilliseconds, double frequency)
      Parameters:
      timeMilliseconds -
      frequency -
  • Method Details

    • getCoordinate

      public double getCoordinate(int iCoordinate)
      Description copied from interface: PamCoordinate
      Get an indexed coordinate.
      Specified by:
      getCoordinate in interface PamCoordinate
      Parameters:
      iCoordinate - coordinate index.
      Returns:
      coordinate value.
    • setCoordinate

      public void setCoordinate(int iCoordinate, double value)
      Description copied from interface: PamCoordinate
      Set a coordinate value
      Specified by:
      setCoordinate in interface PamCoordinate
      Parameters:
      iCoordinate - index of coordinate (0,1,2)
      value - value to set.
    • getNumCoordinates

      public int getNumCoordinates()
      Specified by:
      getNumCoordinates in interface PamCoordinate
      Returns:
      the number of coordinates.
    • getTimeMilliseconds

      public long getTimeMilliseconds()
      Returns:
      the timeMilliseconds
    • setTimeMilliseconds

      public void setTimeMilliseconds(long timeMilliseconds)
      Parameters:
      timeMilliseconds - the timeMilliseconds to set
    • getFrequency

      public double getFrequency()
      Returns:
      the frequency
    • setFrequency

      public void setFrequency(double frequency)
      Parameters:
      frequency - the frequency to set