From c56f572c1026a774bcec768821e64ac31354ceff Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 30 Dec 2017 10:06:47 +0100 Subject: Clear PAPRStats when config gets changed --- src/PAPRStats.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/PAPRStats.cpp') diff --git a/src/PAPRStats.cpp b/src/PAPRStats.cpp index 2e8bca9..1a72238 100644 --- a/src/PAPRStats.cpp +++ b/src/PAPRStats.cpp @@ -100,6 +100,12 @@ double PAPRStats::calculate_papr() const return 10.0 * std::log10(peak / rms2); } +void PAPRStats::clear() +{ + m_squared_peaks.clear(); + m_squared_mean.clear(); +} + #if defined(TEST) /* Test python code: import numpy as np -- cgit v1.2.3