RtMedianFilter.h
Go to the documentation of this file.
1#pragma once
2
3
4// STD/STL
5#include <vector>
6
7// Boost
8#include <boost/circular_buffer.hpp>
9
11{
12
14 {
15 public:
16 RtMedianFilter(size_t windowSize = 10);
17
18 float update(float value);
19
20 std::size_t getWindowSize() const;
21
22 private:
23 boost::circular_buffer<float> dataHistory;
24 std::vector<float> medianBuffer;
25 };
26
27} // namespace armarx::control::rt_filters