|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.SP.Transform.Fourier
public class Fourier
This class contains some methods to handle a Fourier transform of a signal.
| Field Summary | |
|---|---|
double |
PI
Pi = 3.141592 |
double |
SQH
Square root of 1/2 |
| Constructor Summary | |
|---|---|
Fourier()
Make a Fourier Object |
|
| Method Summary | |
|---|---|
void |
bitrevi(complexVector x)
reverse indices of x by bit reversal |
void |
bitrevi(complexVector x,
complexVector y)
reverse indices of x by bit reversal and store the result in y |
void |
decibelPlot()
plot the decibel magnitude of the FT spectrum. |
void |
fft(complexVector f)
The Fast Fourier Transform of a given complex vector f of arbitrary length. |
void |
fft(vector f)
The Fast Fourier Transform of a given real vector f of arbitrary length. |
complexVector |
getY()
Get a complex vector that is the Fourier transform of a given signal. |
complexVector |
ifft()
The Inverse Fourier Transform of the complex vector that is contained in the Fourier object. |
complexVector |
ifft(complexVector fhat)
The Inverse Fourier Transform of a given complex vector. |
vector |
imaginary()
Get the imaginary part of the Fourier transform of a given signal. |
vector |
magnitude()
Get the magnitude of the Fourier transform of a given signal. |
vector |
phase()
Get the phase of the Fourier transform of a given signal. |
void |
plot()
plot the magnitude, the real part, and the imaginary part of the FT. |
void |
plot(java.lang.String specific)
plot a specific component of the FT. |
void |
plot(java.lang.String specific,
java.lang.String specific2)
plot the FT where specific2 is "half", "whole", of "shift" spectrum. |
vector |
real()
Get the real part of the Fourier transform of a given signal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final double SQH
public final double PI
| Constructor Detail |
|---|
public Fourier()
| Method Detail |
|---|
public complexVector getY()
public vector real()
public vector imaginary()
public vector magnitude()
public vector phase()
public void bitrevi(complexVector x)
x - A complex vector
public void bitrevi(complexVector x,
complexVector y)
x - The original complex vectory - The result complex vector after bit reversalpublic void fft(complexVector f)
f - A complex vectorpublic void fft(vector f)
f - A real vectorpublic complexVector ifft(complexVector fhat)
fhat - A complex vectorpublic complexVector ifft()
public void plot(java.lang.String specific)
specific - A string that can have these values "magnitude", "phase", "real", "imaginary".
public void plot(java.lang.String specific,
java.lang.String specific2)
specific - A string that can have these values "magnitude", "real", "imaginary".specific2 - A string that can have these values "half", "shift", "whole".public void plot()
public void decibelPlot()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||