IT++ Logo Newcom Logo

Upsampling of Vectors and Matrices


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 incerting (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 incerting (usf-1) zeros after each column.
template<class T>
Mat< T > itpp::upsample (const Mat< T > &v, int usf)
 Upsample each column by incerting (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, const double f_base, const double f_ups, const int nrof_samples, const 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, const double f_base, const double f_ups, const int nrof_samples, const double t_start=0)
 Upsample each sample of vector v to achieve f_ups frequency using linear interpolation.

Detailed Description


Function Documentation

template<class T>
Vec<T> itpp::repeat ( const Vec< T > &  v,
int  norepeats 
) [inline]

Repeat each element in the vector norepeats times in sequence.

Definition at line 742 of file matfunc.h.

References itpp::Vec< Num_T >::length().

template<class T>
Mat<T> itpp::repeat ( const Mat< T > &  m,
int  norepeats 
) [inline]

Repeats each column norepeats times in sequence.

Definition at line 755 of file matfunc.h.

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

template<class T>
void itpp::upsample ( const Vec< T > &  v,
int  usf,
Vec< T > &  u 
) [inline]

Upsample a vector by inserting (usf-1) zeros after each sample.

Definition at line 769 of file matfunc.h.

References itpp::Vec< Num_T >::clear(), it_assert1, itpp::Vec< Num_T >::length(), and itpp::Vec< Num_T >::set_size().

template<class T>
Vec<T> itpp::upsample ( const Vec< T > &  v,
int  usf 
) [inline]

Upsample a vector by incerting (usf-1) zeros after each sample.

Definition at line 781 of file matfunc.h.

References itpp::upsample().

template<class T>
void itpp::upsample ( const Mat< T > &  v,
int  usf,
Mat< T > &  u 
) [inline]

Upsample each column by incerting (usf-1) zeros after each column.

Definition at line 790 of file matfunc.h.

References itpp::Mat< Num_T >::clear(), itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::get_col(), it_assert1, itpp::Mat< Num_T >::rows(), itpp::Mat< Num_T >::set_col(), and itpp::Mat< Num_T >::set_size().

template<class T>
Mat<T> itpp::upsample ( const Mat< T > &  v,
int  usf 
) [inline]

Upsample each column by incerting (usf-1) zeros after each column.

Definition at line 801 of file matfunc.h.

References itpp::upsample().

template<class T>
void itpp::lininterp ( const Mat< T > &  m,
int  usf,
Mat< T > &  u 
) [inline]

Upsample each column by a factor of (usf-1) by linear interpolation.

Definition at line 810 of file matfunc.h.

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

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

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

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.

Author:
Adam Piatyszek

Definition at line 834 of file matfunc.h.

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

template<class T>
Mat<T> itpp::lininterp ( const Mat< T > &  m,
int  usf 
) [inline]

Upsample each column by a factor of (usf-1) by linear interpolation.

Definition at line 865 of file matfunc.h.

References itpp::lininterp().

template<class T>
void itpp::lininterp ( const Vec< T > &  v,
int  usf,
Vec< T > &  u 
) [inline]

Upsample by a factor of (usf-1) by linear interpolation.

Definition at line 874 of file matfunc.h.

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

template<class T>
Vec<T> itpp::lininterp ( const Vec< T > &  v,
int  usf 
) [inline]

Upsample by a factor of (usf-1) by linear interpolation.

Definition at line 887 of file matfunc.h.

References itpp::lininterp().

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

Upsample each sample of vector v to achieve f_ups frequency using linear interpolation.

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.

Author:
Adam Piatyszek

Definition at line 906 of file matfunc.h.

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

SourceForge Logo

Generated on Wed Apr 18 11:23:38 2007 for IT++ by Doxygen 1.5.2