Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Median filter over a stream of values. More...
#include <timedata.h>
Public Member Functions | |
CMedianFilter (unsigned int _size, T initial_value) | |
void | input (T value) |
T | median () const |
int | size () const |
std::vector< T > | sorted () const |
Private Attributes | |
std::vector< T > | vValues |
std::vector< T > | vSorted |
unsigned int | nSize |
Detailed Description
template<typename T>
class CMedianFilter< T >
Median filter over a stream of values.
Returns the median of the last N numbers
Definition at line 22 of file timedata.h.
Constructor & Destructor Documentation
◆ CMedianFilter()
|
inline |
Definition at line 30 of file timedata.h.
References CMedianFilter< T >::vSorted, and CMedianFilter< T >::vValues.
Member Function Documentation
◆ input()
|
inline |
Definition at line 37 of file timedata.h.
References immer::copy(), CMedianFilter< T >::nSize, CMedianFilter< T >::vSorted, and CMedianFilter< T >::vValues.
Referenced by AddTimeData().
◆ median()
|
inline |
Definition at line 49 of file timedata.h.
References CMedianFilter< T >::vSorted.
Referenced by AddTimeData().
◆ size()
|
inline |
Definition at line 62 of file timedata.h.
References CMedianFilter< T >::vValues.
Referenced by AddTimeData().
◆ sorted()
|
inline |
Definition at line 67 of file timedata.h.
References CMedianFilter< T >::vSorted.
Referenced by AddTimeData().
Member Data Documentation
◆ nSize
|
private |
Definition at line 27 of file timedata.h.
Referenced by CMedianFilter< T >::input().
◆ vSorted
|
private |
Definition at line 26 of file timedata.h.
Referenced by CMedianFilter< T >::CMedianFilter(), CMedianFilter< T >::input(), CMedianFilter< T >::median(), and CMedianFilter< T >::sorted().
◆ vValues
|
private |
Definition at line 25 of file timedata.h.
Referenced by CMedianFilter< T >::CMedianFilter(), CMedianFilter< T >::input(), and CMedianFilter< T >::size().
The documentation for this class was generated from the following file:
- src/timedata.h