ch.aplu.util
Class Waveform.SineWave

java.lang.Object
  extended by ch.aplu.util.Waveform.SineWave
All Implemented Interfaces:
Waveform
Enclosing interface:
Waveform

public static class Waveform.SineWave
extends java.lang.Object
implements Waveform

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

Waveform.SineWave

public Waveform.SineWave()
Method Detail

f

public double f(double t,
                double freq)
Declares a sine wave of given frequency: f = sin(omega*t).

Specified by:
f in interface Waveform
Parameters:
t - the time argument
freq - the frequency argument (omega = 2 * PI * freq)
Returns:
the function return value

toString

public java.lang.String toString()
Returns class information.

Overrides:
toString in class java.lang.Object
Returns:
information