IT++ Logo
Public Member Functions | List of all members
itpp::Sawtooth_Source Class Reference

Sawtooth-wave source. More...

#include <itpp/signal/source.h>

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. More...
 
double operator() ()
 Return a single sample. More...
 
vec operator() (int n)
 Get a sample vector. More...
 
mat operator() (int h, int w)
 Get a sample matrix. More...
 

Detailed Description

Sawtooth-wave source.

Definition at line 107 of file source.h.

Constructor & Destructor Documentation

◆ Sawtooth_Source()

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 174 of file source.cpp.

References itpp::mean(), and itpp::pi.

Member Function Documentation

◆ operator()() [1/3]

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

Return a single sample.

Definition at line 113 of file source.h.

◆ operator()() [2/3]

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

Get a sample vector.

Definition at line 193 of file source.cpp.

◆ operator()() [3/3]

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

Get a sample matrix.

Definition at line 203 of file source.cpp.


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

Generated on Tue Aug 17 2021 10:59:15 for IT++ by Doxygen 1.9.4