public class GaussianWaveform extends Object
Constructor and Description |
---|
GaussianWaveform()
Creates a gaussian waveform with a normal distribution (average zero and
standard deviation one), updating every 100ms (10Hz).
|
GaussianWaveform(Double stdDev,
Double nSamples,
Double interval)
Creates a gaussian waveform signal with a gaussian distribution, updating at the rate
specified.
|
Modifier and Type | Method and Description |
---|---|
static double |
gaussian(double x,
double centerX,
double width)
1D gaussian, centered on centerX and with the specified width.
|
public GaussianWaveform()
public GaussianWaveform(Double stdDev, Double nSamples, Double interval)
stdDev
- standard deviation of the gaussian distributionnSamples
- number of elements in the waveforminterval
- time between samples in secondspublic static double gaussian(double x, double centerX, double width)
x
- coordinate xcenterX
- center of the gaussian on xwidth
- width of the gaussian in all directionsCopyright © 2012. All Rights Reserved.