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
9namespace mrs_lib
10{
11
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
Definition iir_filter.h:13
All mrs_lib functions, classes, variables and definitions are contained in this namespace.
Definition attitude_converter.h:24