|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.nevec.prima.simulator.fluctuations.Fluctuation
public class Fluctuation
This class computes fluctuations which follow a given power density spectrum. It may be used for computing atmospheric fluctuations.
| Field Summary | |
|---|---|
private Complex[] |
a
Amplitudes |
double |
dt
Size of time bins |
private FFT |
fft
Performs FFT |
double[] |
filterFunc
For diagnostic purposes |
private ArrayList<PowerFilter> |
filters
Defines the spectral filters to be used |
double[] |
freq
|
double[] |
phase
Phase |
double[] |
power
Power spectrum |
| Constructor Summary | |
|---|---|
Fluctuation(int length,
double dt)
|
|
| Method Summary | |
|---|---|
void |
addFilter(PowerFilter filter)
|
void |
filter()
Applies the defined filter functions to the spectrum |
double[][] |
getTimeSeries()
Retrieve the time series, which has been obtained by an inverse FFT |
void |
inverse()
Obtain a new time series from the spectrum by means of an inverse FFT |
void |
newRandomDist()
Creates new random distribution of a normalized amplitude |
void |
newSeries()
Does all the steps in a single go |
void |
newSpectrum()
Creates a new spectrum from the time series |
void |
removeFilters()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Complex[] a
public double[] power
public double[] phase
public double[] freq
public double dt
private ArrayList<PowerFilter> filters
private FFT fft
public double[] filterFunc
| Constructor Detail |
|---|
public Fluctuation(int length,
double dt)
| Method Detail |
|---|
public void addFilter(PowerFilter filter)
public void removeFilters()
public void newRandomDist()
public void newSpectrum()
public void filter()
public void inverse()
public void newSeries()
public double[][] getTimeSeries()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||