From 65925d53a3ef13784cd51538761d5ed63ab1e45d Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 30 Apr 2020 19:55:52 +0200 Subject: [PATCH] added reset() --- phasor.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phasor.hh b/phasor.hh index 6d0e4bd..6ee5401 100644 --- a/phasor.hh +++ b/phasor.hh @@ -34,6 +34,10 @@ public: { omega(Const::TwoPi() * v); } + void reset() + { + prev = complex_type(1, 0); + } complex_type operator()() { complex_type tmp = prev;