11 #ifndef INCLUDED_DIGITAL_ADAPTIVE_ALGORITHM_H
12 #define INCLUDED_DIGITAL_ADAPTIVE_ALGORITHM_H
25 class adaptive_algorithm;
26 typedef std::shared_ptr<adaptive_algorithm> adaptive_algorithm_sptr;
29 :
public std::enable_shared_from_this<adaptive_algorithm>
39 : d_algorithm_type(alg_type), d_constellation(
cons)
43 adaptive_algorithm_sptr
base() {
return shared_from_this(); }
59 d_constellation->map_to_points(d_constellation->decision_maker(&wu), &decision);
77 unsigned int num_taps)
82 for (
unsigned i = 0; i < num_taps; i++) {
83 taps[i] = update_tap(
taps[i], in[i], error, decision);
Definition: adaptive_algorithm.h:30
virtual gr_complex error_dd(gr_complex &wu, gr_complex &decision) const
Definition: adaptive_algorithm.h:51
const constellation_sptr d_constellation
Definition: adaptive_algorithm.h:33
virtual gr_complex error_tr(const gr_complex &wu, const gr_complex &d_n) const
Definition: adaptive_algorithm.h:63
virtual void update_taps(gr_complex *taps, const gr_complex *in, const gr_complex error, const gr_complex decision, unsigned int num_taps)
Definition: adaptive_algorithm.h:73
virtual void initialize_taps(std::vector< gr_complex > &taps)
Definition: adaptive_algorithm.h:45
virtual ~adaptive_algorithm()
Definition: adaptive_algorithm.h:36
adaptive_algorithm_sptr base()
Definition: adaptive_algorithm.h:43
virtual gr_complex update_tap(const gr_complex tap, const gr_complex &in, const gr_complex error, const gr_complex decision)=0
const adaptive_algorithm_t d_algorithm_type
Definition: adaptive_algorithm.h:32
adaptive_algorithm(adaptive_algorithm_t alg_type, constellation_sptr cons)
Definition: adaptive_algorithm.h:38
#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.
Definition: basic_block.h:29
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.