Loading...
Searching...
No Matches
iir_filter_ccd.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2004,2012,2014 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_IIR_FILTER_CCD_H
#define INCLUDED_IIR_FILTER_CCD_H
#include <gnuradio/filter/api.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace filter {
/*!
* \brief IIR filter with complex input, complex output, and
* double taps.
* \ingroup filter_blk
*
* \details
* This filter uses the Direct Form I implementation, where \p
* fftaps contains the feed-forward taps, and \p fbtaps the
* feedback ones.
*
* \p oldstyle: The old style of the IIR filter uses feedback
* taps that are negative of what most definitions use (scipy
* and Matlab among them). This parameter keeps using the old
* GNU Radio style and is set to TRUE by default. When taps
* generated from scipy, Matlab, or gr_filter_design, use the
* new style by setting this to FALSE.
*
* The input and output satisfy a difference equation of the form
\f[
y[n] - \sum_{k=1}^{M} a_k y[n-k] = \sum_{k=0}^{N} b_k x[n-k]
\f]
\xmlonly
y[n] - \sum_{k=1}^{M} a_k y[n-k] = \sum_{k=0}^{N} b_k x[n-k]
\endxmlonly
* with the corresponding rational system function
\f[
H(z) = \frac{\sum_{k=0}^{M} b_k z^{-k}}{1 - \sum_{k=1}^{N} a_k z^{-k}}
\f]
\xmlonly
H(z) = \ frac{\sum_{k=0}^{M} b_k z^{-k}}{1 - \sum_{k=1}^{N} a_k z^{-k}}
\endxmlonly
*/
class FILTER_API iir_filter_ccd : virtual public sync_block
{
public:
// gr::filter::iir_filter_ccd::sptr
typedef std::shared_ptr<iir_filter_ccd> sptr;
static sptr make(const std::vector<double>& fftaps,
const std::vector<double>& fbtaps,
bool oldstyle = true);
virtual void set_taps(const std::vector<double>& fftaps,
const std::vector<double>& fbtaps) = 0;
};
} /* namespace filter */
} /* namespace gr */
#endif /* INCLUDED_IIR_FILTER_CCD_H */
gr::filter::iir_filter_ccd
IIR filter with complex input, complex output, and double taps.
Definition iir_filter_ccd.h:57
gr::filter::iir_filter_ccd::sptr
std::shared_ptr< iir_filter_ccd > sptr
Definition iir_filter_ccd.h:60
gr::filter::iir_filter_ccd::make
static sptr make(const std::vector< double > &fftaps, const std::vector< double > &fbtaps, bool oldstyle=true)
gr::filter::iir_filter_ccd::set_taps
virtual void set_taps(const std::vector< double > &fftaps, const std::vector< double > &fbtaps)=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::filter
Definition dc_blocker_cc.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h