Class moving_sum_state¶
class moving_sum_state<U, Tag> dsp¶
template <typename U, univector_tag Tag = tag_dynamic_vector>
struct moving_sum_state { … } State for a moving-sum (rectangular window) filter with a compile-time-sized delay line.
| U | Sample/value type. |
| Tag | univector_tag describing the storage kind (default dynamic). |
constructor moving_sum_state<U, Tag>() ¶
moving_sum_state() Fully qualified name: kfr::moving_sum_state<U, Tag>::moving_sum_state<U, Tag>()
Declared at dsp/fir.hpp:203
variable delayline ¶
univector<U, Tag> delayline Ring buffer holding the window contents.
Fully qualified name: kfr::moving_sum_state<U, Tag>::delayline
Declared at dsp/fir.hpp:204
variable head_cursor ¶
size_t head_cursor Write cursor (newest sample).
Fully qualified name: kfr::moving_sum_state<U, Tag>::head_cursor
Declared at dsp/fir.hpp:205
variable tail_cursor ¶
size_t tail_cursor Read cursor (oldest sample).
Fully qualified name: kfr::moving_sum_state<U, Tag>::tail_cursor
Declared at dsp/fir.hpp:206
Fully qualified name: kfr::moving_sum_state<U, Tag>
Declared at dsp/fir.hpp:201
Class moving_sum_state¶
class moving_sum_state<U, tag_dynamic_vector> dsp¶
template <typename U>
struct moving_sum_state<U, tag_dynamic_vector> { … } Specialization of moving_sum_state for a runtime-sized window.
| U | Sample/value type. |
constructor moving_sum_state<U, tag_dynamic_vector>(size_t) ¶
moving_sum_state(size_t sum_length) Construct a moving-sum state with the given window length.
| sum_length | Number of samples in the summation window. |
Fully qualified name: kfr::moving_sum_state<U, tag_dynamic_vector>::moving_sum_state<U, tag_dynamic_vector>(size_t)
Declared at dsp/fir.hpp:220
variable delayline ¶
univector<U> delayline Ring buffer holding the window contents.
Fully qualified name: kfr::moving_sum_state<U, tag_dynamic_vector>::delayline
Declared at dsp/fir.hpp:221
variable head_cursor ¶
size_t head_cursor Write cursor (newest sample).
Fully qualified name: kfr::moving_sum_state<U, tag_dynamic_vector>::head_cursor
Declared at dsp/fir.hpp:222
variable tail_cursor ¶
size_t tail_cursor Read cursor (oldest sample).
Fully qualified name: kfr::moving_sum_state<U, tag_dynamic_vector>::tail_cursor
Declared at dsp/fir.hpp:223
Fully qualified name: kfr::moving_sum_state<U, tag_dynamic_vector>
Declared at dsp/fir.hpp:214