mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
Loading...
Searching...
No Matches
iir_filter.h
Go to the documentation of this file.
1
4
#ifndef IIR_FILTER_H
5
#define IIR_FILTER_H
6
7
#include <vector>
8
9
namespace
mrs_lib
10
{
11
12
class
IirFilter
13
{
14
15
public
:
22
IirFilter
(
const
std::vector<double>& a,
const
std::vector<double>& b);
23
IirFilter
();
24
25
double
iterate(
const
double
input);
26
27
std::tuple<std::vector<double>, std::vector<double>> getCoeffs();
28
std::vector<double> getBuffer();
29
30
private
:
31
std::vector<double> a_;
32
std::vector<double> b_;
33
size_t
order_;
34
std::vector<double> buffer_;
35
};
36
37
}
// namespace mrs_lib
38
39
#endif
mrs_lib::IirFilter
Definition
iir_filter.h:13
mrs_lib
All mrs_lib functions, classes, variables and definitions are contained in this namespace.
Definition
attitude_converter.h:24
include
mrs_lib
iir_filter.h
Generated by
1.9.8