Package Spectrogram
Class TimeFrequencyPoint
java.lang.Object
Spectrogram.TimeFrequencyPoint
- All Implemented Interfaces:
PamCoordinate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getCoordinate
(int iCoordinate) Get an indexed coordinate.double
int
long
void
setCoordinate
(int iCoordinate, double value) Set a coordinate valuevoid
setFrequency
(double frequency) void
setTimeMilliseconds
(long timeMilliseconds)
-
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 interfacePamCoordinate
- 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 interfacePamCoordinate
- Parameters:
iCoordinate
- index of coordinate (0,1,2)value
- value to set.
-
getNumCoordinates
public int getNumCoordinates()- Specified by:
getNumCoordinates
in interfacePamCoordinate
- 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
-