Function downsample2¶
function downsample2(E1 &&, csize_t<offset>) dsp¶
template <typename E1, size_t offset = 0>
KFR_FUNCTION internal::expression_downsample<2, offset, E1> downsample2(E1&& e1,
csize_t<offset> = csize_t<0>()) Downsamples a signal by a factor of 2 by selecting every other sample.
Warning
This function does NOT apply any anti-aliasing filter. It simply drops samples (keeping samples at positions offset , offset+2 , offset+4 , ...). Use this only when no filtering is desired; otherwise prefer a proper samplerate_converter with a decimation factor of 2.
| E1 | The input expression type. |
| offset | Index of the first sample to keep (0 or 1). |
| e1 | The input expression. |
| An expression producing the downsampled signal. |
Fully qualified name: kfr::downsample2(E1 &&, csize_t<offset>)
Declared at dsp/sample_rate_conversion.hpp:522
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.