#include <band.h>
Public Member Functions | |
double | average () |
Band (size_t m_size=0, double m_dropFactor=0.985) | |
double | getAllTimeMaximum () |
double | getAllTimeMaximumRaw () |
std::deque< double > | getHistory () |
double | getNewest () |
double | getOldest () |
void | log (double value) |
void | resetMaximum () |
Private Attributes | |
double | m_allTimeMaximum |
double | m_dropFactor |
std::deque< double > | m_history |
size_t | m_size |
mybeat::Band::Band | ( | size_t | m_size = 0 , |
double | m_dropFactor = 0.985 |
||
) |
double mybeat::Band::average | ( | ) |
double mybeat::Band::getAllTimeMaximum | ( | ) |
double mybeat::Band::getAllTimeMaximumRaw | ( | ) |
std::deque< double > mybeat::Band::getHistory | ( | ) |
double mybeat::Band::getNewest | ( | ) |
double mybeat::Band::getOldest | ( | ) |
void mybeat::Band::log | ( | double | value | ) |
void mybeat::Band::resetMaximum | ( | ) |
double mybeat::Band::m_allTimeMaximum [private] |
double mybeat::Band::m_dropFactor [private] |
std::deque<double> mybeat::Band::m_history [private] |
size_t mybeat::Band::m_size [private] |