IT++ Logo Newcom Logo

itpp::Sawtooth_Source Class Reference
[Deterministic Sources]

A sawtooth-wave source. More...

#include <itpp/base/source.h>

List of all members.

Public Member Functions

 Sawtooth_Source (double freq, double mean=0.0, double ampl=1.0, double inphase=0.0)
 Constructor. Set frequency, mean, amplitude, and start phase.
double operator() ()
 Return a single sample.
vec operator() (int n)
 Get a sample vector.
mat operator() (int h, int w)
 Get a sample matrix.


Detailed Description

A sawtooth-wave source.

Definition at line 109 of file source.h.


Constructor & Destructor Documentation

itpp::Sawtooth_Source::Sawtooth_Source ( double  freq,
double  mean = 0.0,
double  ampl = 1.0,
double  inphase = 0.0 
)

Constructor. Set frequency, mean, amplitude, and start phase.

Definition at line 177 of file source.cpp.

References itpp::pi.


Member Function Documentation

double itpp::Sawtooth_Source::operator() (  )  [inline]

Return a single sample.

Definition at line 114 of file source.h.

vec itpp::Sawtooth_Source::operator() ( int  n  ) 

Get a sample vector.

Definition at line 196 of file source.cpp.

mat itpp::Sawtooth_Source::operator() ( int  h,
int  w 
)

Get a sample matrix.

Definition at line 206 of file source.cpp.


The documentation for this class was generated from the following files:
SourceForge Logo

Generated on Thu Apr 19 14:18:38 2007 for IT++ by Doxygen 1.5.1