|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.analysis.FourierAnalysis
public class FourierAnalysis
FourierAnalysis adds gutter points to complex-number 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].
Field Summary | |
---|---|
protected int |
datasetID
|
Constructor Summary | |
---|---|
FourierAnalysis()
|
Method Summary | |
---|---|
double[] |
doAnalysis(double[] x,
double[] z,
int gutter)
Fourier analyzes the given complex data z[] after adding gutter points at the start and end of the z[] array. |
java.lang.String[] |
getColumnNames()
The column names to be used in the data display tool |
double[][] |
getData2D()
Gets the frequencies, real, and imaginary coefficients. |
double[][][] |
getData3D()
3D data is not available. |
java.util.List<Data> |
getDataList()
Gets a list that contains the complex dataset of the last Fourier analysis. |
java.util.ArrayList<Dataset> |
getDatasets()
Gets the complex datasets that contain the result of the last Fourier analysis. |
java.awt.Color[] |
getFillColors()
Fill colors for Data interface. |
int |
getID()
Returns a unique identifier for this Data. |
java.awt.Color[] |
getLineColors()
Line colors for Data interface. |
java.lang.String |
getName()
Gets the dataset name. |
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[] z)
Repeats the Fourier analysis of the complex data z[] with the previously set scale and gutter. |
void |
setID(int id)
Sets the ID number of this Data. |
void |
setName(java.lang.String name)
Sets a name that can be used to identify the dataset. |
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 |
Field Detail |
---|
protected int datasetID
Constructor Detail |
---|
public FourierAnalysis()
Method Detail |
---|
public double[] doAnalysis(double[] x, double[] z, int gutter)
x
- double[]z
- double[]gutter
- int
public double[] repeatAnalysis(double[] z)
z
- double[]
public double[] getNaturalOmega()
public double[] getNaturalFreq()
public void useRadians(boolean radians)
radians
- booleanpublic boolean isRadians()
public java.util.List<Data> getDataList()
getDataList
in interface Data
public java.util.ArrayList<Dataset> getDatasets()
getDatasets
in interface Data
public double[][] getData2D()
getData2D
in interface Data
public double[][][] getData3D()
getData3D
in interface Data
public void setName(java.lang.String name)
name
- Stringpublic java.lang.String getName()
getName
in interface Data
public java.lang.String[] getColumnNames()
getColumnNames
in interface Data
public java.awt.Color[] getLineColors()
getLineColors
in interface Data
public java.awt.Color[] getFillColors()
getFillColors
in interface Data
public void setID(int id)
setID
in interface Data
id
- the ID numberpublic int getID()
getID
in interface Data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |