Skip to content

Function moving_sum

function moving_sum(E1 &&, size_t) dsp

template <typename E1>
KFR_INTRINSIC expression_moving_sum<expression_value_type<E1>, E1, tag_dynamic_vector> moving_sum(
    E1&& e1, size_t sum_length)

Returns template expression that performs moving sum on the input.

Parameters
e1 An input expression.
sum_length Number of samples in the summation window.

Fully qualified name: kfr::moving_sum(E1 &&, size_t)

Declared at dsp/fir.hpp:520

Function moving_sum

function moving_sum(E1 &&) dsp

template <size_t sum_length, typename E1>
[[deprecated("moving_sum<len> is deprecated. Use moving_sum(expr, len) instead")]] KFR_INTRINSIC
    expression_moving_sum<expression_value_type<E1>, E1, tag_dynamic_vector>
    moving_sum(E1&& e1)

Returns template expression that performs moving sum on the input.

Deprecated

Use moving_sum(expr, len) instead.

Template parameters
sum_length Number of samples in the summation window.
Parameters
e1 An input expression.

Fully qualified name: kfr::moving_sum(E1 &&)

Declared at dsp/fir.hpp:536

Function moving_sum

function moving_sum(E1 &&, std::reference_wrapper<moving_sum_state<U, Tag>>) dsp

template <typename E1, typename U, size_t Tag>
KFR_INTRINSIC expression_moving_sum<U, E1, Tag, true> moving_sum(
    E1&& e1, std::reference_wrapper<moving_sum_state<U, Tag>> state)

Returns template expression that performs moving sum on the input.

Parameters
e1 An input expression.
state Moving sum state (taken by reference).

Fully qualified name: kfr::moving_sum(E1 &&, std::reference_wrapper<moving_sum_state<U, Tag>>)

Declared at dsp/fir.hpp:552

Function moving_sum

function moving_sum(moving_sum_state<U, STag> &, E1 &&) dsp

template <typename U, typename E1, univector_tag STag>
[[deprecated("moving_sum(state, expr) is deprecated. Use moving_sum(expr, std::ref(state)) "
             "instead")]] KFR_INTRINSIC expression_moving_sum<U, E1, STag, true>
moving_sum(moving_sum_state<U, STag>& state, E1&& e1)

Returns template expression that performs moving sum on the input.

Deprecated

Use moving_sum(expr, std::ref(state)) instead.

Parameters
state Moving sum state.
e1 An input expression.

Fully qualified name: kfr::moving_sum(moving_sum_state<U, STag> &, E1 &&)

Declared at dsp/fir.hpp:567

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.