MostlyHarmless 0.0.1
 
Loading...
Searching...
No Matches
marvin::math::LeakyIntegrator< SampleType > Class Template Referencefinal

An integrator of a continuous signal which leaks a small amount of said signal over time. More...

#include <marvin_LeakyIntegrator.h>

Public Member Functions

SampleType operator() (SampleType x, SampleType a) noexcept
 

Detailed Description

template<FloatType SampleType>
class marvin::math::LeakyIntegrator< SampleType >

An integrator of a continuous signal which leaks a small amount of said signal over time.

https://en.wikipedia.org/wiki/Leaky_integrator

Member Function Documentation

◆ operator()()

template<FloatType SampleType>
SampleType marvin::math::LeakyIntegrator< SampleType >::operator() ( SampleType x,
SampleType a )
nodiscardnoexcept

Processes the next tick of the integrator.

Parameters
xThe input sample.
aThe rate of of the leak.
Returns
The leakily-integrated signal.

The documentation for this class was generated from the following file: