MostlyHarmless 0.0.1
 
Loading...
Searching...
No Matches
marvin_LeakyIntegrator.h
Go to the documentation of this file.
1// ========================================================================================================
2// _______ _______ ______ ___ ___ _______ _______
3// | | | _ | __ \ | |_ _| | |
4// | | | < | |_| |_| |
5// |__|_|__|___|___|___|__|\_____/|_______|__|____|
6//
7// This file is part of the Marvin open source library and is licensed under the terms of the MIT License.
8//
9// ========================================================================================================
10
11#ifndef MARVIN_LEAKYINTEGRATOR_H
12#define MARVIN_LEAKYINTEGRATOR_H
14namespace marvin::math {
20 template <FloatType SampleType>
21 class LeakyIntegrator final {
22 public:
29 [[nodiscard]] SampleType operator()(SampleType x, SampleType a) noexcept;
30
31 private:
32 SampleType m_prev;
33 };
34} // namespace marvin::math
35#endif
An integrator of a continuous signal which leaks a small amount of said signal over time.
Definition marvin_LeakyIntegrator.h:21
SampleType operator()(SampleType x, SampleType a) noexcept
Math helper functions and classes.
Definition marvin_Math.h:22