ch.aplu.util
Class Waveform.ChirpWave
java.lang.Object
ch.aplu.util.Waveform.ChirpWave
- All Implemented Interfaces:
- Waveform
- Enclosing interface:
- Waveform
public static class Waveform.ChirpWave
- extends java.lang.Object
- implements Waveform
Implements a waveform (chirp).
Method Summary |
double |
f(double t,
double freq)
Declares a chirp wave of given start frequency. |
java.lang.String |
toString()
Returns class information. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Waveform.ChirpWave
public Waveform.ChirpWave()
f
public double f(double t,
double freq)
- Declares a chirp wave of given start frequency.
A chirp is a sine function with ascending frequency:
fasc = (endFreq - startFreq) / upTime
- Specified by:
f
in interface Waveform
- Parameters:
t
- the time argumentfreq
- the start frequency
- Returns:
- the function return value
toString
public java.lang.String toString()
- Returns class information.
- Overrides:
toString
in class java.lang.Object
- Returns:
- information