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