Bitcoin ABC 0.26.3
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 24 of file timedata.h.
|
inline |
|
inline |
Definition at line 37 of file timedata.h.
|
inline |
|
inline |
Definition at line 62 of file timedata.h.
|
inline |
Definition at line 64 of file timedata.h.
|
private |
Definition at line 28 of file timedata.h.
|
private |
Definition at line 27 of file timedata.h.
|
private |
Definition at line 26 of file timedata.h.