resample_poly#

Polyphase resampler with a configurable up and downsample rate

template<typename InType, typename FilterType>
inline auto matx::resample_poly(const InType &in, const FilterType &f, index_t up, index_t down)#

1D polyphase resampler

Template Parameters:
  • InType – Type of input

  • FilterType – Type of filter

Parameters:
  • in – Input operator

  • f – Filter operator

  • up – Factor by which to upsample

  • down – Factor by which to downsample

Returns:

Operator representing the filtered inputs

Examples#

// Resample "a" using input signal "f" by rate up/down
(b = resample_poly(a, f, up, down)).run(this->exec);