Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

ptolemy.math
Class SignalProcessing.GaussianSampleGenerator

java.lang.Object
 extended byptolemy.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
SignalProcessing.GaussianSampleGenerator(double mean, double standardDeviation)
Construct a GaussianSampleGenerator.
Method Summary
double operate(double time)
Return a sample of the Gaussian function, sampled at the specified time.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SignalProcessing.GaussianSampleGenerator

public SignalProcessing.GaussianSampleGenerator(double mean,
 double standardDeviation)
Construct a GaussianSampleGenerator.

Parameters:
standardDeviation - The standard deviation of the Gaussian function.
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 interface DoubleUnaryOperation
Parameters:
time - The operand.
Returns:
The results of the operation.

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /