GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
mmse_fir_interpolator_ff.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2002,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
11#ifndef _MMSE_FIR_INTERPOLATOR_FF_H_
12#define _MMSE_FIR_INTERPOLATOR_FF_H_
13
14#include <gnuradio/filter/api.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 * \p input must have ntaps() valid entries.
50 * input[0] .. input[ntaps() - 1] are referenced to compute the output value.
51 *
52 * \p mu must be in the range [0, 1] and specifies the fractional delay.
53 *
54 * \returns the interpolated input value.
55 */
56 float interpolate(const float input[], float mu) const;
57
58protected:
59 std::vector<kernel::fir_filter_fff> filters;
60};
61
62} /* namespace filter */
63} /* namespace gr */
64
65#endif /* _MMSE_FIR_INTERPOLATOR_FF_H_ */
Compute intermediate samples between signal samples x(k*Ts)
Definition: mmse_fir_interpolator_ff.h:39
std::vector< kernel::fir_filter_fff > filters
Definition: mmse_fir_interpolator_ff.h:59
mmse_fir_interpolator_ff(mmse_fir_interpolator_ff &&)=default
float interpolate(const float input[], float mu) const
compute a single interpolated output value. input must have ntaps() valid entries....
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29