From 59783338c86f9a19bfa4d7abc69c1ecabf8da885 Mon Sep 17 00:00:00 2001 From: Rob Riggs Date: Tue, 28 Dec 2021 17:57:34 -0600 Subject: [PATCH] Add reset() function to IIR filter. --- TNC/IirFilter.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TNC/IirFilter.hpp b/TNC/IirFilter.hpp index d441147..41bfd16 100644 --- a/TNC/IirFilter.hpp +++ b/TNC/IirFilter.hpp @@ -28,6 +28,8 @@ struct IirFilter { static constexpr size_t size() { return N; } + void reset() { history_.fill(0.0f); } + float operator()(float input) {