|
||||||||||
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 |
bandPassFilter(int flp,
int fhp)
|
void |
computeBackwardFFT(double[] in_r,
double[] in_i)
|
void |
computeForwardFFT(double[] in_r,
double[] in_i)
|
static void |
csvparserTest()
|
void |
fft(double[] _realPart,
double[] _imaginaryPart)
|
double[] |
getImaginaryData()
|
double[] |
getLogPSD()
|
static double |
getMagnitudeSquared(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 |
static double[] |
getNoise(double[] a)
|
static double[] |
getPsd(double[] audioWaveForm)
|
double[] |
getPSDNormalized()
|
double[] |
getPSDNotNormalized()
|
static double[] |
getPsdNotNormalized(double[] in_r,
double[] in_i)
Compute the power spectral density of the input arrays |
double[] |
getRealData()
|
static OscopePanel |
getSpectrumPanel(double[] audioWaveForm)
|
void |
highPassFilter(int fk)
|
void |
lowPassFilter(int fk)
|
static void |
main(java.lang.String[] args)
|
void |
normalize()
Divide the real and imginary parts by the length of each. |
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 |
squelch(double v)
|
void |
swap(int i,
int numBits)
|
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()
|
static void |
testGetMaxPSDLocation()
|
void |
timeFFT(int n)
|
void |
visuallyTest()
|
static void |
window(double[] r,
double[] w)
|
void |
zeroCutOff(double psdMin)
Zero out the partials whose PSD is below the psdMin |
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 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)
i
- numBits
- public static void testGetMaxPSDLocation()
public static int getMaxPSDLocation(double[] realPart, double[] imaginaryPart)
realPart
- imaginaryPart
-
public static double getMagnitudeSquared(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)
_realPart
- _imaginaryPart
- public double[] getRealData()
public double[] getImaginaryData()
public double[] getPSDNormalized()
public double[] getPSDNotNormalized()
public double[] getLogPSD()
public static double[] getPsdNotNormalized(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 void normalize()
public void zeroCutOff(double psdMin)
psdMin
- generally a small number (2E-4)public static double[] getNoise(double[] a)
public void bandPassFilter(int flp, int fhp)
public void highPassFilter(int fk)
public void lowPassFilter(int fk)
public void squelch(double v)
public void visuallyTest()
public void timeFFT(int n)
public static void csvparserTest()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |