GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
mmse_fir_interpolator_cc.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2002,2007,2012 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10#ifndef _GRI_MMSE_FIR_INTERPOLATOR_CC_H_
11#define _GRI_MMSE_FIR_INTERPOLATOR_CC_H_
12
13#include <gnuradio/filter/api.h>
15#include <gnuradio/gr_complex.h>
16#include <vector>
17
18namespace gr {
19namespace filter {
20
21/*!
22 * \brief Compute intermediate samples between signal samples x(k*Ts)
23 * \ingroup filter_primitive
24 *
25 * \details
26 * This implements a Minimum Mean Squared Error interpolator with
27 * 8 taps. It is suitable for signals where the bandwidth of
28 * interest B = 1/(4*Ts) Where Ts is the time between samples.
29 *
30 * Although mu, the fractional delay, is specified as a float, it
31 * is actually quantized. 0.0 <= mu <= 1.0. That is, mu is
32 * quantized in the interpolate method to 32nd's of a sample.
33 *
34 * For more information, in the GNU Radio source code, see:
35 * \li gr-filter/lib/gen_interpolator_taps/README
36 * \li gr-filter/lib/gen_interpolator_taps/praxis.txt
37 */
39{
40public:
43
44 unsigned ntaps() const;
45 unsigned nsteps() const;
46
47 /*!
48 * \brief compute a single interpolated output value.
49 *
50 * \p input must have ntaps() valid entries and be 8-byte aligned.
51 * input[0] .. input[ntaps() - 1] are referenced to compute the output value.
52 * \throws std::invalid_argument if input is not 8-byte aligned.
53 *
54 * \p mu must be in the range [0, 1] and specifies the fractional delay.
55 *
56 * \returns the interpolated input value.
57 */
58 gr_complex interpolate(const gr_complex input[], float mu) const;
59
60protected:
61 std::vector<kernel::fir_filter_ccf> filters;
62};
63
64} /* namespace filter */
65} /* namespace gr */
66
67#endif /* _MMSE_FIR_INTERPOLATOR_CC_H_ */
Compute intermediate samples between signal samples x(k*Ts)
Definition: mmse_fir_interpolator_cc.h:39
mmse_fir_interpolator_cc(mmse_fir_interpolator_cc &&)=default
std::vector< kernel::fir_filter_ccf > filters
Definition: mmse_fir_interpolator_cc.h:61
gr_complex interpolate(const gr_complex input[], float mu) const
compute a single interpolated output value.
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:18
std::complex< float > gr_complex
Definition: gr_complex.h:15
GNU Radio logging wrapper.
Definition: basic_block.h:29