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