#include <lancir.h>
Public Member Functions | |
CSinGen (const double si, const double ph, const double g=1.0) | |
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::CLancIR::CResizeFilters::CSinGen::CSinGen | ( | const double | si, |
const double | ph, | ||
const double | g = 1.0 |
||
) |
Constructor initializes *this sine signal generator.
si | Sine function increment, in radians. |
ph | Starting phase, in radians. Add 0.5 * LANCIR_PI for cosine function. |
g | Gain value. |
double avir::CLancIR::CResizeFilters::CSinGen::generate | ( | ) |