|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.analysis.FourierSinCosAnalysis
public class FourierSinCosAnalysis
FourierAnalysis adds gutter points to real data before performing a fast Fourier transform. Gutter points increase the number points in order to approximate a nonperiodic function. The FFT output is phase shifted to account for the fact that the FFT basis functions are defined on [0, 2*pi].
| Constructor Summary | |
|---|---|
FourierSinCosAnalysis()
|
|
| Method Summary | |
|---|---|
double[] |
doAnalysis(double[] x,
double[] y,
int gutter)
Fourier analyzes the given data y[] after adding gutter points at the start and end of the z[] array. |
java.util.ArrayList |
getComplexDatasets()
Complexdatasets are not available. |
double[][] |
getData2D()
Gets the frequencies, power, cos, and sin coefficients. |
double[][][] |
getData3D()
3D data is not available. |
java.util.ArrayList |
getDatasets()
Gets the datasets that contain the result of the last Fourier analysis. |
double[] |
getNaturalFreq()
Gets the frequencies of the Fourier spectrum. |
double[] |
getNaturalOmega()
Gets the angular frequencies of the Fourier spectrum. |
boolean |
isRadians()
Gets the radians flag. |
double[] |
repeatAnalysis(double[] y)
Repeats the Fourier analysis of the real data y[] with the previously set scale and gutter. |
void |
useRadians(boolean radians)
Sets the radians flag for the frequency values of datasets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FourierSinCosAnalysis()
| Method Detail |
|---|
public double[] doAnalysis(double[] x,
double[] y,
int gutter)
x - double[]y - double[]gutter - int
public double[] repeatAnalysis(double[] y)
y - double[]
public double[] getNaturalOmega()
public double[] getNaturalFreq()
public void useRadians(boolean radians)
radians - booleanpublic boolean isRadians()
public java.util.ArrayList getComplexDatasets()
getComplexDatasets in interface Datapublic java.util.ArrayList getDatasets()
getDatasets in interface Datapublic double[][] getData2D()
getData2D in interface Datapublic double[][][] getData3D()
getData3D in interface Data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||