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
11
namespace
armarx::control::rt_filters
12
{
13
14
class
RtMedianFilter
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
armarx
control
rt_filters
RtMedianFilter.h
Generated on Sat Oct 12 2024 09:14:15 for armarx_documentation by
1.8.17