Skip to content

filter


filter class

template <typename T> filter

Abstract base class for filters with one argument. Mainly for DSP

reset function (filter::reset)

virtual void reset()

Resets internal state (such as delay line)

apply function (filter::apply)

template <size_t Size> void apply(T (&buffer)[Size])

Applies filter to a static array

template <size_t Size>
void apply(T (&dest)[Size], T (&src)[Size])

Applies filter to a static array and writes the result to another array

template <univector_tag Tag>
void apply(univector<T, Tag> &buffer)

Applies filter to a univector

template <univector_tag Tag1, univector_tag Tag2>
void apply(univector<T, Tag1> &dest,
           const univector<T, Tag2> &src)

Applies filter to a univector and writes the result to another univector


expression_filter class

template <typename T> expression_filter

to_filter function (generic::to_filter)

template <typename E, typename T = expression_value_type<E>>
expression_filter<T> to_filter(E &&e)

Converts expression with placeholder to filter. Placeholder and filter must have the same type


to_filter function

template <typename T, typename E>
expression_filter<T> to_filter(expression_handle<T, 1> &&e)

Converts expression with placeholder to filter. Placeholder and filter must have the same type


state_holder class

template <typename T, bool Stateless> state_holder

template <typename T> state_holder

template <typename T> state_holder

Auto-generated from sources, Revision , https://github.com/kfrlib/kfr/blob//include/kfr/