public class FftwService extends Object implements FftService
FftService
.Constructor and Description |
---|
FftwService()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
fft(int[] dims,
double[] in,
double[] out)
Computes a forward transform.
|
String |
getHint(String name)
Gets the value of the given hint.
|
void |
ifft(int[] dims,
double[] in,
double[] out)
Computes a backward transform.
|
protected static String |
modeToString(int mode)
Gets a string representation of the execution mode.
|
void |
rfft(int[] dims,
double[] in,
double[] out)
Computes a reduced forward transform.
|
void |
rifft(int[] dims,
double[] in,
double[] out)
Computes a reduced backward transform.
|
void |
setHint(String name,
String value)
Sets the value of the given hint.
|
String |
toString()
Delegates to
AbstractMap.toString() . |
protected void |
transform(int type,
int[] dims,
int mode,
double[] in,
double[] out)
Performs a transform of the given type and dimensions on the given input/output arrays.
|
protected static String |
typeToString(int mode)
Gets a string representation of the FFT type.
|
public void rfft(int[] dims, double[] in, double[] out)
FftService
rfft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void rifft(int[] dims, double[] in, double[] out)
FftService
rifft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void fft(int[] dims, double[] in, double[] out)
FftService
fft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void ifft(int[] dims, double[] in, double[] out)
FftService
ifft
in interface FftService
dims
- the dimensions of the transform.in
- the input array.out
- the output array.public void setHint(String name, String value)
FftService
setHint
in interface FftService
name
- the hint name.value
- the value.public String getHint(String name)
FftService
getHint
in interface FftService
name
- the hint name.public String toString()
AbstractMap.toString()
.protected static final String modeToString(int mode)
protected static final String typeToString(int mode)
protected void transform(int type, int[] dims, int mode, double[] in, double[] out)
type
- the kind of transform.dims
- the dimensions of the transform.mode
- the transform mode.in
- the input array.out
- the output array.