GNU Radio Manual and C++ API Reference
3.9.1.0
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
>
14
#include <
gnuradio/filter/fir_filter.h
>
15
#include <
gnuradio/gr_complex.h
>
16
#include <vector>
17
18
namespace
gr
{
19
namespace
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
*/
38
class
FILTER_API
mmse_fir_interpolator_cc
39
{
40
public
:
41
mmse_fir_interpolator_cc
();
42
mmse_fir_interpolator_cc
(
mmse_fir_interpolator_cc
&&) =
default
;
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
60
protected
:
61
std::vector<kernel::fir_filter_ccf>
filters
;
62
};
63
64
}
/* namespace filter */
65
}
/* namespace gr */
66
67
#endif
/* _MMSE_FIR_INTERPOLATOR_CC_H_ */
FILTER_API
#define FILTER_API
Definition:
gr-filter/include/gnuradio/filter/api.h:18
gr::filter::mmse_fir_interpolator_cc
Compute intermediate samples between signal samples x(k*Ts)
Definition:
mmse_fir_interpolator_cc.h:38
api.h
gr_complex
std::complex< float > gr_complex
Definition:
gr_complex.h:15
fir_filter.h
gr::filter::mmse_fir_interpolator_cc::filters
std::vector< kernel::fir_filter_ccf > filters
Definition:
mmse_fir_interpolator_cc.h:61
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr_complex.h
gr-filter
include
gnuradio
filter
mmse_fir_interpolator_cc.h
Generated by
1.8.17