summaryrefslogtreecommitdiff
path: root/gr-digital/lib/digital_cma_equalizer_cc.h
diff options
context:
space:
mode:
authorTom Rondeau2011-06-06 11:35:28 -0400
committerTom Rondeau2011-06-06 11:35:28 -0400
commit23ee6269df6f139ef6b85e7f404d452c10bb63a8 (patch)
treee45f3ea831347c09c8aab10285a64aaa9328a5d5 /gr-digital/lib/digital_cma_equalizer_cc.h
parent7293ac44d02280407f2b8dfd265eafe33178086f (diff)
downloadgnuradio-23ee6269df6f139ef6b85e7f404d452c10bb63a8.tar.gz
gnuradio-23ee6269df6f139ef6b85e7f404d452c10bb63a8.tar.bz2
gnuradio-23ee6269df6f139ef6b85e7f404d452c10bb63a8.zip
digital: formatting CMA code; adding get_ functions and renaming things for consistency.
Diffstat (limited to 'gr-digital/lib/digital_cma_equalizer_cc.h')
-rw-r--r--gr-digital/lib/digital_cma_equalizer_cc.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/gr-digital/lib/digital_cma_equalizer_cc.h b/gr-digital/lib/digital_cma_equalizer_cc.h
index ba94854d1..0dd99debd 100644
--- a/gr-digital/lib/digital_cma_equalizer_cc.h
+++ b/gr-digital/lib/digital_cma_equalizer_cc.h
@@ -72,12 +72,23 @@ protected:
}
public:
+ float get_gain()
+ {
+ return d_mu;
+ }
+
void set_gain(float mu)
{
- if(mu < 0)
- throw std::out_of_range("digital_cma_equalizer::set_gain: Gain value must be >= 0");
+ if(mu < 0.0f || mu > 1.0f) {
+ throw std::out_of_range("digital_cma_equalizer::set_gain: Gain value must be in [0,1]");
+ }
d_mu = mu;
}
+
+ float get_modulus()
+ {
+ return d_modulus;
+ }
void set_modulus(float mod)
{