org.epics.pvmanager.sim
Class GaussianWaveform

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

public class GaussianWaveform
extends java.lang.Object

Function to simulate a waveform containing a gaussian that moves to the right.

Author:
carcassi

Constructor Summary
GaussianWaveform()
          Creates a gaussian waveform with a normal distribution (average zero and standard deviation one), updating every 100ms (10Hz).
GaussianWaveform(java.lang.Double stdDev, java.lang.Double nSamples, java.lang.Double interval)
          Creates a gaussian waveform signal with a gaussian distribution, updating at the rate specified.
 
Method Summary
static double gaussian(double x, double centerX, double width)
          1D gaussian, centered on centerX and with the specified width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaussianWaveform

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


GaussianWaveform

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

Parameters:
stdDev - standard deviation of the gaussian distribution
nSamples - number of elements in the waveform
interval - time between samples in seconds
Method Detail

gaussian

public static double gaussian(double x,
                              double centerX,
                              double width)
1D gaussian, centered on centerX and with the specified width.

Parameters:
x - coordinate x
centerX - center of the gaussian on x
width - width of the gaussian in all directions
Returns:
the value of the function at the given coordinates