GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
mmse_interp_differentiator_cc.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright (C) 2002,2007,2012,2017 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 _MMSE_INTERP_DIFFERENTIATOR_CC_H_
11#define _MMSE_INTERP_DIFFERENTIATOR_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 of the derivative of a signal
23 * between signal samples x(k*Ts)
24 * \ingroup filter_primitive
25 *
26 * \details
27 * This implements a Minimum Mean Squared Error interpolating
28 * differentiator with 8 taps. It is suitable for signals where the
29 * derivative of a signal has a bandwidth of interest in the range
30 * (-Fs/4, Fs/4), where Fs is the samples rate.
31 *
32 * Although mu, the fractional delay, is specified as a float, in
33 * the range [0.0, 1.0], it is actually quantized. That is, mu is
34 * quantized in the differentiate method to 128th's of a sample.
35 *
36 */
38{
39public:
42
43 unsigned ntaps() const;
44 unsigned nsteps() const;
45
46 /*!
47 * \brief compute a single interpolated differentiated output value.
48 *
49 * \p input must have ntaps() valid entries.
50 * input[0] .. input[ntaps() - 1] are referenced to compute the output
51 * value.
52 *
53 * \p mu must be in the range [0, 1] and specifies the fractional delay.
54 *
55 * \throws std::runtime_error if mu is not in the range [0, 1].
56 *
57 * \returns the interpolated differentiated output value.
58 */
59 gr_complex differentiate(const gr_complex input[], float mu) const;
60
61protected:
62 std::vector<kernel::fir_filter_ccf> filters;
63};
64
65} /* namespace filter */
66} /* namespace gr */
67
68#endif /* _MMSE_INTERP_DIFFERENTIATOR_CC_H_ */
Compute intermediate samples of the derivative of a signal between signal samples x(k*Ts)
Definition: mmse_interp_differentiator_cc.h:38
mmse_interp_differentiator_cc(mmse_interp_differentiator_cc &&)=default
std::vector< kernel::fir_filter_ccf > filters
Definition: mmse_interp_differentiator_cc.h:62
gr_complex differentiate(const gr_complex input[], float mu) const
compute a single interpolated differentiated 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