GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
hilbert_fc.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004,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 INCLUDED_FILTER_HILBERT_FC_H
12#define INCLUDED_FILTER_HILBERT_FC_H
13
14#include <gnuradio/fft/window.h>
15#include <gnuradio/filter/api.h>
17#include <gnuradio/sync_block.h>
18#include <gnuradio/types.h>
19
20namespace gr {
21namespace filter {
22
23/*!
24 * \brief Generate Analytic Signal.
25 * \ingroup filter_blk
26 *
27 * \details
28 * Real part of the output is an appropriately delayed version of the input while
29 * the complex part of the output is the hilbert transform of the input.
30 *
31 * This is an indirect way of generating the hilbert transform of a signal.
32 *
33 * (https://en.wikipedia.org/wiki/Hilbert_transform#Analytic_representation)
34 */
35class FILTER_API hilbert_fc : virtual public sync_block
36{
37public:
38 // gr::filter::hilbert_fc::sptr
39 typedef std::shared_ptr<hilbert_fc> sptr;
40
41 /*!
42 * Build a Hilbert transformer filter block that generates the analytic signal.
43 *
44 * \param ntaps The number of taps for the filter.
45 * \param window Window type (see fft::window::win_type) to use.
46 * \param param Parameter value for a Kaiser/Exp/Gaussian/Tukey window.
47 */
48 static sptr make(unsigned int ntaps,
49 fft::window::win_type window = fft::window::win_type::WIN_HAMMING,
50 double param = 6.76);
51};
52
53} /* namespace filter */
54} /* namespace gr */
55
56#endif /* INCLUDED_FILTER_HILBERT_FC_H */
win_type
Definition: window.h:28
Generate Analytic Signal.
Definition: hilbert_fc.h:36
std::shared_ptr< hilbert_fc > sptr
Definition: hilbert_fc.h:39
static sptr make(unsigned int ntaps, fft::window::win_type window=fft::window::win_type::WIN_HAMMING, double param=6.76)
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29