summaryrefslogtreecommitdiff
path: root/gr-digital/include/digital_constellation.h
diff options
context:
space:
mode:
authorTom Rondeau2012-10-15 10:56:40 -0400
committerTom Rondeau2012-10-15 10:56:40 -0400
commitd4cec71c426653edbe1d2c552388f20939f09a8e (patch)
treebf561792c9c0c1de977bd844f018abcb1c8e6c04 /gr-digital/include/digital_constellation.h
parent136050324a6f5023a6b549b158fef1a0de9e1d79 (diff)
parenta5f794128d8386ff0067cbe2928af4ded728d3b2 (diff)
downloadgnuradio-d4cec71c426653edbe1d2c552388f20939f09a8e.tar.gz
gnuradio-d4cec71c426653edbe1d2c552388f20939f09a8e.tar.bz2
gnuradio-d4cec71c426653edbe1d2c552388f20939f09a8e.zip
Merge remote-tracking branch 'benreynwar/master_constellation_scale'
Diffstat (limited to 'gr-digital/include/digital_constellation.h')
-rw-r--r--gr-digital/include/digital_constellation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-digital/include/digital_constellation.h b/gr-digital/include/digital_constellation.h
index a72bfb74c..76cd30b25 100644
--- a/gr-digital/include/digital_constellation.h
+++ b/gr-digital/include/digital_constellation.h
@@ -120,6 +120,9 @@ public:
unsigned int d_rotational_symmetry;
unsigned int d_dimensionality;
unsigned int d_arity;
+ // The orignal constellation points were multiplied by this factor to get a
+ // constellation with average magnitude 1.
+ float d_scalefactor;
float get_distance(unsigned int index, const gr_complex *sample);
unsigned int get_closest_point(const gr_complex *sample);