Resampling Functions
[Signal Processing (SP) Module]


Functions

template<class T >
Vec< T > itpp::repeat (const Vec< T > &v, int norepeats)
 Repeat each element in the vector norepeats times in sequence.
template<class T >
Mat< T > itpp::repeat (const Mat< T > &m, int norepeats)
 Repeats each column norepeats times in sequence.
template<class T >
void itpp::upsample (const Vec< T > &v, int usf, Vec< T > &u)
 Upsample a vector by inserting (usf-1) zeros after each sample.
template<class T >
Vec< T > itpp::upsample (const Vec< T > &v, int usf)
 Upsample a vector by inserting (usf-1) zeros after each sample.
template<class T >
void itpp::upsample (const Mat< T > &v, int usf, Mat< T > &u)
 Upsample each column by inserting (usf-1) zeros after each column.
template<class T >
Mat< T > itpp::upsample (const Mat< T > &v, int usf)
 Upsample each column by inserting (usf-1) zeros after each column.
template<class T >
void itpp::lininterp (const Mat< T > &m, int usf, Mat< T > &u)
 Upsample each column by a factor of (usf-1) by linear interpolation.
template<class T >
Mat< T > itpp::lininterp (const Mat< T > &m, double f_base, double f_ups, int nrof_samples, double t_start=0)
 Upsample each column of matrix m to achieve f_ups frequency using linear interpolation.
template<class T >
Mat< T > itpp::lininterp (const Mat< T > &m, int usf)
 Upsample each column by a factor of (usf-1) by linear interpolation.
template<class T >
void itpp::lininterp (const Vec< T > &v, int usf, Vec< T > &u)
 Upsample by a factor of (usf-1) by linear interpolation.
template<class T >
Vec< T > itpp::lininterp (const Vec< T > &v, int usf)
 Upsample by a factor of (usf-1) by linear interpolation.
template<class T >
Vec< T > itpp::lininterp (const Vec< T > &v, double f_base, double f_ups, int nrof_samples, double t_start=0)
 Upsample vector v to achieve f_ups frequency using linear interpolation.

Function Documentation

template<class T >
Vec<T> itpp::lininterp ( const Vec< T > &  v,
double  f_base,
double  f_ups,
int  nrof_samples,
double  t_start = 0 
) [inline]

Upsample vector v to achieve f_ups frequency using linear interpolation.

Author:
Adam Piatyszek
This function performs upsampling of vector v to achieve nrof_samples samples at f_ups frequency starting from the sample at t_start time. The frequency of input samples stored in the vector v is defined by the f_base parameter.

References it_assert_debug, and itpp::Vec< Num_T >::length().

Referenced by itpp::FIR_Fading_Generator::generate(), and itpp::lininterp().

template<class T >
Mat<T> itpp::lininterp ( const Mat< T > &  m,
double  f_base,
double  f_ups,
int  nrof_samples,
double  t_start = 0 
) [inline]

Upsample each column of matrix m to achieve f_ups frequency using linear interpolation.

Author:
Adam Piatyszek
This function performs upsampling of matrix m to achieve nrof_samples samples at f_ups frequency starting from the sample at t_start time. The frequency of input samples stored in the matrix m is defined by the f_base parameter.

References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().


Generated on Tue Jun 2 10:02:14 2009 for mixpp by  doxygen 1.5.8