public class FFTReal
extends java.lang.Object
| Constructor | Description |
|---|---|
FFTReal() |
Constructs a real FFT transformation for n data points.
|
FFTReal(int n) |
Constructs a real FFT transformation for n data points.
|
| Modifier and Type | Method | Description |
|---|---|---|
double[] |
backtransform(double[] data) |
Computes the (unnomalized) inverse FFT of data, leaving it in place.
|
int |
getN() |
Gets the number of data points.
|
double[] |
getNaturalFreq(double delta) |
Gets an array containing the frequencies in natural order.
|
double[] |
getNaturalFreq(double xmin,
double xmax) |
Gets an array containing the frequencies in natural order.
|
double[] |
getNaturalOmega(double delta) |
Gets an array containing the frequencies in natural order.
|
double[] |
getNaturalOmega(double xmin,
double xmax) |
Gets an array containing the frequencies in natural order.
|
double[] |
inverse(double[] data) |
Computes the (nomalized) inverse FFT of data, leaving it in place.
|
void |
setN(int n) |
Sets the number of data points.
|
double[] |
transform(double[] data) |
Computes the Fast Fourier Transform of the data leaving the result in data.
|
public FFTReal()
public FFTReal(int n)
n - the number of data pointspublic void setN(int n)
n - intpublic int getN()
public double[] transform(double[] data)
data - double[] the data to be transformedpublic double[] backtransform(double[] data)
data - double[] the data to be transformedpublic double[] inverse(double[] data)
data - double[] the data to be transformedpublic double[] getNaturalFreq(double delta)
delta - public double[] getNaturalFreq(double xmin,
double xmax)
xmin - xmax - public double[] getNaturalOmega(double delta)
delta - public double[] getNaturalOmega(double xmin,
double xmax)
xmin - xmax -