Datapublic class FourierSinCosAnalysis extends java.lang.Object implements Data
The FFT output is phase shifted to account for the fact that the FFT basis functions are defined on [0, 2*pi].
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
datasetID |
| Constructor | Description |
|---|---|
FourierSinCosAnalysis() |
| Modifier and Type | Method | Description |
|---|---|---|
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.lang.String[] |
getColumnNames() |
The column names to be used in the data display tool
|
double[][] |
getData2D() |
Gets the frequencies, power, cos, and sin coefficients.
|
double[][][] |
getData3D() |
3D data is not available.
|
java.util.List<Data> |
getDataList() |
Some elements (a Group, for instance) do not contain data, but a list of subelements which do.
|
java.util.ArrayList<Dataset> |
getDatasets() |
Gets the 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[] y) |
Repeats the Fourier analysis of the real data y[] 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.
|
public double[] doAnalysis(double[] x,
double[] y,
int gutter)
x - double[]y - double[]gutter - intpublic java.util.List<Data> getDataList()
getDataList in interface Datapublic 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<Dataset> getDatasets()
Dataset x-values are either frequencies (cycles) or angular frequencies (radians) depending on the value of the radians flag.
getDatasets in interface Datapublic void setName(java.lang.String name)
name - Stringpublic java.lang.String[] getColumnNames()
getColumnNames in interface Datapublic java.lang.String getName()
public java.awt.Color[] getLineColors()
getLineColors in interface Datapublic java.awt.Color[] getFillColors()
getFillColors in interface Datapublic double[][] getData2D()
public double[][][] getData3D()
public void setID(int id)