public class GaussianWaveform extends Object
Constructor and Description |
---|
GaussianWaveform()
Creates a gaussian wave of 100 samples, with period of 1 second, standard deviation of
100 samples, updating every 100ms (10Hz).
|
GaussianWaveform(Double periodInSeconds,
Double stdDev,
Double nSamples,
Double updateRateInSeconds)
Creates a gaussian wave of given number of samples, with given period and standard,
updating at the given rate
|
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.
|
org.epics.util.time.TimeDuration |
getTimeBetweenSamples()
Returns the time between each sample.
|
public GaussianWaveform()
public GaussianWaveform(Double periodInSeconds, Double stdDev, Double nSamples, Double updateRateInSeconds)
periodInSeconds
- the period measured in secondsstdDev
- standard deviation of the gaussian distributionnSamples
- number of elements in the waveformupdateRateInSeconds
- 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 directionspublic org.epics.util.time.TimeDuration getTimeBetweenSamples()
Copyright © 2010–2015. All rights reserved.