Loading...
Searching...
No Matches
single_pole_iir_filter_ff.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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_FF_H
#define INCLUDED_SINGLE_POLE_IIR_FILTER_FF_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 float input, float 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_ff : virtual public sync_block
{
public:
// gr::filter::single_pole_iir_filter_ff::sptr
typedef std::shared_ptr<single_pole_iir_filter_ff> 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_FF_H */
gr::filter::single_pole_iir_filter_ff
single pole IIR filter with float input, float output
Definition single_pole_iir_filter_ff.h:54
gr::filter::single_pole_iir_filter_ff::make
static sptr make(double alpha, unsigned int vlen=1)
gr::filter::single_pole_iir_filter_ff::sptr
std::shared_ptr< single_pole_iir_filter_ff > sptr
Definition single_pole_iir_filter_ff.h:57
gr::filter::single_pole_iir_filter_ff::set_taps
virtual void set_taps(double alpha)=0
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