Class expression_moving_sum¶
class expression_moving_sum<U, E1, STag, stateless> dsp¶
template <typename U, typename E1, univector_tag STag, bool stateless = false>
struct expression_moving_sum : expression_with_traits<E1> { … } Template expression performing a moving sum (rectangular window) over the input.
Maintains a running sum updated incrementally as samples enter and leave the window. The state may be owned or referenced.
| U | Sample/value type. |
| E1 | Input expression type. |
| STag | univector_tag of the delay line storage. |
| stateless | If true , the state is held by reference. |
typedef value_type ¶
using value_type = U Fully qualified name: kfr::expression_moving_sum<U, E1, STag, stateless>::value_type
Declared at dsp/fir.hpp:346
variable random_access ¶
constexpr static inline bool random_access = false Fully qualified name: kfr::expression_moving_sum<U, E1, STag, stateless>::random_access
Declared at dsp/fir.hpp:349
constructor expression_moving_sum<U, E1, STag, stateless>(E1 &&, state_holder<moving_sum_state<U, STag>, stateless>) ¶
expression_moving_sum(E1&& e1, state_holder<moving_sum_state<U, STag>, stateless> state) Fully qualified name: kfr::expression_moving_sum<U, E1, STag, stateless>::expression_moving_sum<U, E1, STag, stateless>(E1 &&, state_holder<moving_sum_state<U, STag>, stateless>)
Declared at dsp/fir.hpp:351
function get_elements(const expression_moving_sum<U, E1, STag, stateless> &, shape<1>, axis_params<0, N>) ¶
template <size_t N>
KFR_INTRINSIC friend vec<U, N> get_elements(const expression_moving_sum& self, shape<1> index,
axis_params<0, N> sh) Internal ADL-provided implementation for expression_moving_sum expressions.
Fully qualified name: kfr::expression_moving_sum<U, E1, STag, stateless>::get_elements(const expression_moving_sum<U, E1, STag, stateless> &, shape<1>, axis_params<0, N>)
Declared at dsp/fir.hpp:360
variable state ¶
mutable state_holder<moving_sum_state<U, STag>, stateless> state Fully qualified name: kfr::expression_moving_sum<U, E1, STag, stateless>::state
Declared at dsp/fir.hpp:389
Fully qualified name: kfr::expression_moving_sum<U, E1, STag, stateless>
Declared at dsp/fir.hpp:344