11 #ifndef INCLUDED_DIGITAL_ADAPTIVE_ALGORITHM_CMA_H 
   12 #define INCLUDED_DIGITAL_ADAPTIVE_ALGORITHM_CMA_H 
   15 #include <volk/volk.h> 
   16 #include <volk/volk_alloc.hh> 
   23     typedef std::shared_ptr<adaptive_algorithm_cma> 
sptr;
 
   26     const float d_step_size;
 
   27     const float d_modulus;
 
   32           d_step_size(step_size),
 
   38     static sptr make(constellation_sptr 
cons, 
float step_size, 
float modulus)
 
   46         gr_complex error = out * (norm(out) - d_modulus);
 
   47         float re = 
gr::clip(error.real(), 1.0);
 
   48         float im = 
gr::clip(error.imag(), 1.0);
 
   66                      unsigned int num_taps)
 override 
   68         volk::vector<gr_complex> prod_vector(num_taps), conj_vector(num_taps);
 
   72         volk_32fc_conjugate_32fc(conj_vector.data(), in, num_taps);
 
   73         volk_32fc_s32fc_multiply_32fc(
 
   74             prod_vector.data(), conj_vector.data(), err_x_mu, num_taps);
 
   75         volk_32fc_x2_add_32fc(
taps, 
taps, prod_vector.data(), num_taps);
 
   83         return conj(conj(tap) - d_step_size * u_n * conj(err));
 
Definition: adaptive_algorithm_cma.h:21
adaptive_algorithm_cma(constellation_sptr cons, float step_size, float modulus)
Definition: adaptive_algorithm_cma.h:30
gr_complex update_tap(const gr_complex tap, const gr_complex &u_n, const gr_complex err, const gr_complex decision) override
Definition: adaptive_algorithm_cma.h:78
void update_taps(gr_complex *taps, const gr_complex *in, const gr_complex error, const gr_complex decision, unsigned int num_taps) override
Definition: adaptive_algorithm_cma.h:62
std::shared_ptr< adaptive_algorithm_cma > sptr
Definition: adaptive_algorithm_cma.h:23
static sptr make(constellation_sptr cons, float step_size, float modulus)
Definition: adaptive_algorithm_cma.h:38
~adaptive_algorithm_cma() override
Definition: adaptive_algorithm_cma.h:86
gr_complex error(const gr_complex &out) const
Definition: adaptive_algorithm_cma.h:44
gr_complex error_tr(const gr_complex &u_n, const gr_complex &d_n) const override
Definition: adaptive_algorithm_cma.h:57
gr_complex error_dd(gr_complex &u_n, gr_complex &decision) const override
Definition: adaptive_algorithm_cma.h:52
Definition: adaptive_algorithm.h:30
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:18
std::complex< float > gr_complex
Definition: gr_complex.h:15
static constexpr float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
adaptive_algorithm_t
Definition: adaptive_algorithm.h:23
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29
static float clip(float x, float clip)
Definition: math.h:82
PMT_API pmt_t cons(const pmt_t &x, const pmt_t &y)
Return a newly allocated pair whose car is x and whose cdr is y.