aboutsummaryrefslogtreecommitdiffstats
path: root/src/OfdmGenerator.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-30 09:55:45 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-30 10:06:23 +0100
commit18276a5d2eac39b08caa2ce44e196e7a98f1a108 (patch)
tree2a45036399b0522af6e2a554c9e2a9877b30ef62 /src/OfdmGenerator.h
parente0c9959bb4303b81e43fff7efe23f4f583f8422f (diff)
downloaddabmod-18276a5d2eac39b08caa2ce44e196e7a98f1a108.tar.gz
dabmod-18276a5d2eac39b08caa2ce44e196e7a98f1a108.tar.bz2
dabmod-18276a5d2eac39b08caa2ce44e196e7a98f1a108.zip
Calculate PAPR in the OfdmGenerator
Diffstat (limited to 'src/OfdmGenerator.h')
-rw-r--r--src/OfdmGenerator.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/OfdmGenerator.h b/src/OfdmGenerator.h
index 008d84e..8374cf9 100644
--- a/src/OfdmGenerator.h
+++ b/src/OfdmGenerator.h
@@ -30,11 +30,11 @@
# include "config.h"
#endif
-#include "porting.h"
#include "ModPlugin.h"
#include "RemoteControl.h"
+#include "PAPRStats.h"
#include "fftw3.h"
-#include <sys/types.h>
+#include <cstddef>
#include <vector>
#include <complex>
@@ -102,6 +102,10 @@ class OfdmGenerator : public ModCodec, public RemoteControllable
std::deque<double> myClipRatios;
std::deque<double> myErrorClipRatios;
+ // Measure PAPR before and after CFR
+ PAPRStats myPaprBeforeCFR;
+ PAPRStats myPaprAfterCFR;
+
size_t myMERCalcIndex = 0;
std::deque<double> myMERs;
};