|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.fourierTransforms.r2.FFT1dDouble
public class FFT1dDouble
Works. Automatically scales ouput in ifft. A 1D FFT for integral power of two FFTs
Constructor Summary | |
---|---|
FFT1dDouble()
|
Method Summary | |
---|---|
void |
computeBackwardFFT(double[] in_r,
double[] in_i)
|
void |
computeForwardFFT(double[] in_r,
double[] in_i)
|
void |
fft(double[] _realPart,
double[] _imaginaryPart)
FFT engine. |
double[] |
getImaginaryData()
|
static double |
getMagnitude(double r,
double imag)
Compute the sum of the squares of a complex number |
static int |
getMaxPSDLocation(double[] realPart,
double[] imaginaryPart)
get the location of the maximum partial |
double[] |
getPSD()
|
static double[] |
getPsd(double[] audioWaveForm)
|
static double[] |
getPSD(double[] in_r,
double[] in_i)
Compute the power spectral density of the input arrays |
double[] |
getRealData()
|
static OscopePanel |
getSpectrumPanel(double[] audioWaveForm)
|
static void |
main(java.lang.String[] args)
|
static void |
print(java.lang.Object[] o)
|
static void |
showSpectrumAnalyzer()
A way to visually test the 1D FFT on a small amount of data. |
void |
swap(int i,
int numBits)
1D FFT utility functions. |
static void |
synthesizeRamp(double[] realPart,
double[] imaginaryPart)
Destroy the input data with a linear ramp. |
static void |
testFFT()
Test the DFT using a small number of samples. |
static void |
testFFT2()
|
void |
timeFFT(int n)
|
void |
visuallyTest()
|
static void |
window(double[] r,
double[] w)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FFT1dDouble()
Method Detail |
---|
public static void showSpectrumAnalyzer()
public static OscopePanel getSpectrumPanel(double[] audioWaveForm)
public static double[] getPsd(double[] audioWaveForm)
public void visuallyTest()
public void timeFFT(int n)
public static void print(java.lang.Object[] o)
public static void synthesizeRamp(double[] realPart, double[] imaginaryPart)
realPart
- input datas real componentimaginaryPart
- input datas' imaginary component.public static void window(double[] r, double[] w)
public void swap(int i, int numBits)
public static int getMaxPSDLocation(double[] realPart, double[] imaginaryPart)
realPart
- imaginaryPart
-
public static double getMagnitude(double r, double imag)
r
- real partimag
- imaginary part
public void computeForwardFFT(double[] in_r, double[] in_i)
public void computeBackwardFFT(double[] in_r, double[] in_i)
public void fft(double[] _realPart, double[] _imaginaryPart)
public double[] getRealData()
public double[] getImaginaryData()
public double[] getPSD()
public static double[] getPSD(double[] in_r, double[] in_i)
in_r
- real part of an fftin_i
- imaginary part of an fft
public static void testFFT2()
public static void testFFT()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |