Package org.yamcs.studio.data.sim
Class GaussianNoise
Function to simulate a signal that has a gaussian distribution. The warning limits are set above the standard
deviation and the alarm above two times the standard deviation. The total range is 4 times the standard deviation.
All values are going to have no alarm status, with the timestamp set at the moment the sample was generated.
-
Field Summary
Fields inherited from class org.yamcs.studio.data.sim.SimFunction
lastTime
-
Constructor Summary
ConstructorDescriptionCreates a signal with a normal distribution (average zero and standard deviation one), updating every 100ms (10Hz).GaussianNoise
(Double average, Double stdDev, Double interval) Creates a signal with a gaussian distribution, updating at the rate specified. -
Method Summary
Methods inherited from class org.yamcs.studio.data.sim.SimFunction
createValues, getTimeBetweenSamples
-
Constructor Details
-
GaussianNoise
public GaussianNoise()Creates a signal with a normal distribution (average zero and standard deviation one), updating every 100ms (10Hz). -
GaussianNoise
Creates a signal with a gaussian distribution, updating at the rate specified.- Parameters:
average
- average of the gaussian distributionstdDev
- standard deviation of the gaussian distributioninterval
- time between samples in seconds
-