summaryrefslogtreecommitdiffhomepage
path: root/filter-ewma2
diff options
context:
space:
mode:
Diffstat (limited to 'filter-ewma2')
-rw-r--r--filter-ewma2/ftnoir_filter_ewma2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter-ewma2/ftnoir_filter_ewma2.h b/filter-ewma2/ftnoir_filter_ewma2.h
index e6a46739..8babc540 100644
--- a/filter-ewma2/ftnoir_filter_ewma2.h
+++ b/filter-ewma2/ftnoir_filter_ewma2.h
@@ -24,7 +24,8 @@ class ewma : public IFilter
{
public:
ewma();
- void filter(const double *input, double *output);
+ void filter(const double *input, double *output) override;
+ void center() override { first_run = true; }
private:
// Deltas are smoothed over the last 1/60sec.
const double delta_RC = 1./60;