Package ptolemy.math
Class SignalProcessing.GaussianSampleGenerator
- java.lang.Object
-
- ptolemy.math.SignalProcessing.GaussianSampleGenerator
-
- All Implemented Interfaces:
DoubleUnaryOperation
- Enclosing class:
- SignalProcessing
public static class SignalProcessing.GaussianSampleGenerator extends java.lang.Object implements DoubleUnaryOperation
This class generates samples of a Gaussian function with the specified mean and standard deviation. The function computed is :h(t) = (1/(sqrt(2 * PI) * stdDev) * exp(-(t - mean)2 / (2 * stdDev2))
-
-
Constructor Summary
Constructors Constructor Description GaussianSampleGenerator(double mean, double standardDeviation)
Construct a GaussianSampleGenerator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
operate(double time)
Return a sample of the Gaussian function, sampled at the specified time.
-
-
-
Method Detail
-
operate
public final double operate(double time)
Return a sample of the Gaussian function, sampled at the specified time.- Specified by:
operate
in interfaceDoubleUnaryOperation
- Parameters:
time
- The operand.- Returns:
- The results of the operation.
-
-