summaryrefslogtreecommitdiffstats
path: root/src/PAPRStats.cpp
diff options
context:
space:
mode:
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