IT++ 4.3.1
|
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. | |
double | operator() () |
Return a single sample. | |
vec | operator() (int n) |
Get a sample vector. | |
mat | operator() (int h, int w) |
Get a sample matrix. | |
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.
|
inline |
vec itpp::Sawtooth_Source::operator() | ( | int | n | ) |
Get a sample vector.
Definition at line 193 of file source.cpp.
mat itpp::Sawtooth_Source::operator() | ( | int | h, |
int | w ) |
Get a sample matrix.
Definition at line 203 of file source.cpp.