|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.util.Waveform.SineWave
public static class Waveform.SineWave
Implements a waveform (sine).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface ch.aplu.util.Waveform |
---|
Waveform.ChirpWave, Waveform.SawtoothWave, Waveform.SineWave, Waveform.SquareWave, Waveform.TriangleWave, Waveform.WavePlot |
Constructor Summary | |
---|---|
Waveform.SineWave()
|
Method Summary | |
---|---|
double |
f(double t,
double freq)
Declares a sine wave of given frequency: f = sin(omega*t). |
java.lang.String |
toString()
Returns class information. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Waveform.SineWave()
Method Detail |
---|
public double f(double t, double freq)
f
in interface Waveform
t
- the time argumentfreq
- the frequency argument (omega = 2 * PI * freq)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |