Fabcoin Core
0.16.2
P2P Digital Currency
|
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 |
Median filter over a stream of values.
Returns the median of the last N numbers
Definition at line 22 of file timedata.h.
|
inline |
Definition at line 30 of file timedata.h.
|
inline |
|
inline |
Definition at line 49 of file timedata.h.
|
inline |
|
inline |
Definition at line 67 of file timedata.h.
|
private |
Definition at line 27 of file timedata.h.
|
private |
Definition at line 26 of file timedata.h.
|
private |
Definition at line 25 of file timedata.h.