Public Member Functions | |
void | add_new (double data) |
averager (int max_len=50) | |
double | get_mean () |
Protected Attributes | |
std::deque< double > | deq |
unsigned int | max_len |
double | sum |
Definition at line 99 of file sickld.cpp.
averager::averager | ( | int | max_len = 50 | ) | [inline] |
Definition at line 105 of file sickld.cpp.
void averager::add_new | ( | double | data | ) | [inline] |
Definition at line 108 of file sickld.cpp.
double averager::get_mean | ( | ) | [inline] |
Definition at line 116 of file sickld.cpp.
std::deque<double> averager::deq [protected] |
Definition at line 101 of file sickld.cpp.
unsigned int averager::max_len [protected] |
Definition at line 102 of file sickld.cpp.
double averager::sum [protected] |
Definition at line 103 of file sickld.cpp.