|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.math.SignalProcessing.SinusoidSampleGenerator
This class generates samples of a sinusoidal wave. The function computed is :
h(t) = cos(frequency * t + phase)where the argument is taken to be in radians. To use this class to generate a sine wave, simply set the phase to -Math.PI*0.5 from the phase, since sin(t) = cos(t - PI/2).
| Constructor Summary | |
SignalProcessing.SinusoidSampleGenerator(double frequency,
double phase)
Construct a SinusoidSampleGenerator. |
|
| Method Summary | |
double |
operate(double time)
Operate on the operand, returning a value of the same type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SignalProcessing.SinusoidSampleGenerator(double frequency,
double phase)
frequency - The frequency of the cosine wave, in radians per
unit time.phase - The phase shift, in radians.| Method Detail |
public final double operate(double time)
DoubleUnaryOperation
operate in interface DoubleUnaryOperation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||