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

Triangle-wave source. More...

#include <itpp/signal/source.h>

Public Member Functions

 Triangle_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

Triangle-wave source.

Definition at line 86 of file source.h.

Constructor & Destructor Documentation

◆ Triangle_Source()

itpp::Triangle_Source::Triangle_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 129 of file source.cpp.

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

Member Function Documentation

◆ operator()() [1/3]

double itpp::Triangle_Source::operator() ( )
inline

Return a single sample.

Definition at line 92 of file source.h.

◆ operator()() [2/3]

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

Get a sample vector.

Definition at line 148 of file source.cpp.

◆ operator()() [3/3]

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

Get a sample matrix.

Definition at line 158 of file source.cpp.


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

Generated on Tue Jan 24 2023 00:00:00 for IT++ by Doxygen 1.9.6