#include <avir.h>
Public Member Functions | |
CSineGen (const double si, const double ph) | |
double | generate () |
Sine signal generator class.
Class implements sine signal generator without biasing, with constructor-based initalization only. This generator uses oscillator instead of "sin" function.
avir::CSineGen::CSineGen | ( | const double | si, |
const double | ph | ||
) |
Constructor initializes *this sine signal generator.
si | Sine function increment, in radians. |
ph | Starting phase, in radians. Add 0.5 * AVIR_PI for cosine function. |
double avir::CSineGen::generate | ( | ) |