|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.algorithm.Fft1d
public class Fft1d
Computes 1-dimensional FFT of a complex array.
Constructor Summary | |
---|---|
Fft1d(int nMaxWidth)
Creates a new Fft1d object capable of computing FFTs up to a given maximum width. |
Method Summary | |
---|---|
Complex[] |
fft(Complex[] x)
Computes forward FFT of the complex array. |
Complex[] |
ifft(Complex[] x)
Computes inverse FFT of the input complex array. |
void |
setMaxWidth(int N)
Sets a new maximum width. |
java.lang.String |
toString()
String describing current FFT instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Fft1d(int nMaxWidth) throws Error
nMaxWidth
- The maximum width to compute FFTs for. This is used to precompute the complex
roots of unity used in the FFT calculation. Must be a power of 2.
Error
- if width parameter is not a power of two.Method Detail |
---|
public Complex[] fft(Complex[] x) throws Error
x
- The complex array to compute the FFT of.
Error
- if image size is not a power of two or is larger than maximum width set in
the constructor.public Complex[] ifft(Complex[] x) throws Error
x
- The input complex array.
Error
- if the input size is not a power of two or is larger than the maximum
set in the constructor.public void setMaxWidth(int N) throws Error
N
- The new maximum width.
Error
- If N is not a power of 2.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |