aboutsummaryrefslogtreecommitdiffstats
path: root/src/PAPRStats.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-30 10:06:47 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-30 10:06:47 +0100
commitc56f572c1026a774bcec768821e64ac31354ceff (patch)
tree42119732d24b14f170921bcb5d376d3b27bc556b /src/PAPRStats.cpp
parent18276a5d2eac39b08caa2ce44e196e7a98f1a108 (diff)
downloaddabmod-c56f572c1026a774bcec768821e64ac31354ceff.tar.gz
dabmod-c56f572c1026a774bcec768821e64ac31354ceff.tar.bz2
dabmod-c56f572c1026a774bcec768821e64ac31354ceff.zip
Clear PAPRStats when config gets changed
Diffstat (limited to 'src/PAPRStats.cpp')
-rw-r--r--src/PAPRStats.cpp6
1 files changed, 6 insertions, 0 deletions
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