public class DiscreteFourierTransform
extends java.lang.Object
Constructor and Description |
---|
DiscreteFourierTransform(double[] values,
double period)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getFrequency(int index)
get the frequency associated with the frequency index
|
Complex[] |
getSpectrum()
get the transform at the specified frequency index
|
int |
getSpectrumCount()
get the count of the elements in the transform
|
double |
getTime(int index)
get the time for the specified time index
|
double[] |
getValues()
get the time based array of values
|
public DiscreteFourierTransform(double[] values, double period)
values
- is an even number of values evenly spaced over timeperiod
- is the time periodjava.lang.RuntimeException
- if the number of time based elements is not evenpublic double[] getValues()
public double getTime(int index)
public Complex[] getSpectrum()
public int getSpectrumCount()
public double getFrequency(int index)