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 
10 
12 {
13 
15  {
16  public:
17  RtMedianFilter(size_t windowSize = 10);
18 
19  float update(float value);
20 
21  std::size_t getWindowSize() const;
22 
23  private:
24  boost::circular_buffer<float> dataHistory;
25  std::vector<float> medianBuffer;
26  };
27 
28 } // namespace armarx::control::rt_filters
armarx::control::rt_filters
Definition: AverageFilter.cpp:3
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::control::rt_filters::RtMedianFilter::update
float update(float value)
Definition: RtMedianFilter.cpp:15
armarx::control::rt_filters::RtMedianFilter
Definition: RtMedianFilter.h:14
armarx::control::rt_filters::RtMedianFilter::getWindowSize
std::size_t getWindowSize() const
Definition: RtMedianFilter.cpp:27
armarx::control::rt_filters::RtMedianFilter::RtMedianFilter
RtMedianFilter(size_t windowSize=10)
Definition: RtMedianFilter.cpp:8