public class FftOps extends Object
JavaFftService
.Modifier and Type | Method and Description |
---|---|
protected static int[] |
createFactors(int num)
Creates a prime factorization and stride modifiers array.
|
protected static double[] |
createTwiddles(int n,
int direction)
Creates an array of twiddle factors.
|
protected static void |
fft(double[] src,
int srcOffset,
double[] dst,
int dstOffset,
double[] scratch,
int[] factors,
int factorIndexCurrent,
double[] twiddles,
int size,
int stride,
int strideCurrent)
The main mixed-radix FFT procedure.
|
protected static void |
fft(double[] dst,
int dstOffsetCurrent,
double[] scratch,
int p,
int n,
double[] twiddles,
int size,
int strideCurrent)
A recursive FFT subroutine for a specific radix.
|
static void |
fft(int direction,
int[] dims,
double[] in,
double[] out)
An FFT operation in support of
JavaFftService.fft(int[], double[], double[]) . |
public static final void fft(int direction, int[] dims, double[] in, double[] out)
JavaFftService.fft(int[], double[], double[])
. Very slow and unoptimized;
for demonstration purposes only.direction
- the transform direction.dims
- the array dimensions.in
- the in array.out
- the out array.protected static final int[] createFactors(int num)
protected static final double[] createTwiddles(int n, int direction)
protected static final void fft(double[] src, int srcOffset, double[] dst, int dstOffset, double[] scratch, int[] factors, int factorIndexCurrent, double[] twiddles, int size, int stride, int strideCurrent)
protected static final void fft(double[] dst, int dstOffsetCurrent, double[] scratch, int p, int n, double[] twiddles, int size, int strideCurrent)