Loading...
Searching...
No Matches
single_pole_iir_filter_cc.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2004-2006,2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_SINGLE_POLE_IIR_FILTER_CC_H
#define INCLUDED_SINGLE_POLE_IIR_FILTER_CC_H
#include <gnuradio/filter/api.h>
#include <gnuradio/filter/single_pole_iir.h>
#include <gnuradio/gr_complex.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace filter {
/*!
* \brief single pole IIR filter with complex input, complex output
* \ingroup filter_blk
*
* \details
* The input and output satisfy a difference equation of the form
\htmlonly
\f{
y[n] - (1-alpha) y[n-1] = alpha x[n]
\f}
\endhtmlonly
\xmlonly
y[n] - (1-alpha) y[n-1] = alpha x[n]
\endxmlonly
* with the corresponding rational system function
\htmlonly
\f{
H(z) = \frac{alpha}{1 - (1-alpha) z^{-1}}
\f}
\endhtmlonly
\xmlonly
H(z) = \ frac{alpha}{1 - (1-alpha) z^{-1}}
\endxmlonly
* Note that some texts define the system function with a + in the
* denominator. If you're using that convention, you'll need to
* negate the feedback tap.
*/
class FILTER_API single_pole_iir_filter_cc : virtual public sync_block
{
public:
// gr::filter::single_pole_iir_filter_cc::sptr
typedef std::shared_ptr<single_pole_iir_filter_cc> sptr;
static sptr make(double alpha, unsigned int vlen = 1);
virtual void set_taps(double alpha) = 0;
};
} /* namespace filter */
} /* namespace gr */
#endif /* INCLUDED_SINGLE_POLE_IIR_FILTER_CC_H */
gr::filter::single_pole_iir_filter_cc
single pole IIR filter with complex input, complex output
Definition single_pole_iir_filter_cc.h:54
gr::filter::single_pole_iir_filter_cc::sptr
std::shared_ptr< single_pole_iir_filter_cc > sptr
Definition single_pole_iir_filter_cc.h:57
gr::filter::single_pole_iir_filter_cc::set_taps
virtual void set_taps(double alpha)=0
gr::filter::single_pole_iir_filter_cc::make
static sptr make(double alpha, unsigned int vlen=1)
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
FILTER_API
#define FILTER_API
Definition gr-filter/include/gnuradio/filter/api.h:18
gr_complex.h
gr::filter
Definition dc_blocker_cc.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
single_pole_iir.h
sync_block.h