org.epics.pvmanager.sim
Class Gaussian

java.lang.Object
  extended by org.epics.pvmanager.sim.Gaussian

public class Gaussian
extends java.lang.Object

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.

Author:
carcassi

Constructor Summary
Gaussian()
          Creates a signal with a normal distribution (average zero and standard deviation one), updating every 100ms (10Hz).
Gaussian(java.lang.Double average, java.lang.Double stdDev, java.lang.Double interval)
          Creates a signal with a gaussian distribution, updating at the rate specified.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gaussian

public Gaussian()
Creates a signal with a normal distribution (average zero and standard deviation one), updating every 100ms (10Hz).


Gaussian

public Gaussian(java.lang.Double average,
                java.lang.Double stdDev,
                java.lang.Double interval)
Creates a signal with a gaussian distribution, updating at the rate specified.

Parameters:
average - average of the gaussian distribution
stdDev - standard deviation of the gaussian distribution
interval - time between samples in seconds