AVIR
High-quality pro image resizing library
 All Classes Files Functions Variables Typedefs Macros
Public Member Functions | List of all members
avir::CLancIR::CResizeFilters::CSinGen Class Reference

#include <lancir.h>

Public Member Functions

 CSinGen (const double si, const double ph, const double g=1.0)
 
double generate ()
 

Detailed Description

Sine signal generator class.

Class implements sine signal generator without biasing, with constructor-based initalization only. This generator uses oscillator instead of "sin" function.

Constructor & Destructor Documentation

avir::CLancIR::CResizeFilters::CSinGen::CSinGen ( const double  si,
const double  ph,
const double  g = 1.0 
)

Constructor initializes *this sine signal generator.

Parameters
siSine function increment, in radians.
phStarting phase, in radians. Add 0.5 * LANCIR_PI for cosine function.
gGain value.

Member Function Documentation

double avir::CLancIR::CResizeFilters::CSinGen::generate ( )
Returns
The next value of the sine function, without biasing.