Go to the documentation of this file.
10 #ifndef TSLIDINGWINDOW_H
11 #define TSLIDINGWINDOW_H
void addNewMeasurement(double measurement)
Update the sliding window by appending a new measurement.
double getStdDev()
Return the Standard deviation of the current measurement vector.
std::string m_name
Name of the TSlidingWindow Instance at hand.
bool m_std_dev_updated
Is the standard deviation up-to-date?
double m_median_cached
Cached median value.
size_t getWindowSize() const
Return the size of the window.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
double m_std_dev_cached
Cached version of the standard deviation.
GLuint const GLchar * name
GLsizei GLsizei GLchar * source
bool m_mean_updated
Is the mean up-to-date?
This class allows loading and storing values and vectors of different types from a configuration text...
bool windowIsFull() const
Check if the window has reached its limit.
bool evaluateMeasurementBelow(double value)
Determine whether the incoming measurement is less or equal to the current mean value.
void dumpToTextStream(std::ostream &out) const
This method should clearly display all the contents of the structure in textual form,...
void resizeWindow(size_t new_size)
Resize the window.
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
double getMedian()
Return the current median value.
bool m_is_initialized
flag is raised the first time that TSlidingWindow::addNewMeasurement is called
double getMean()
Return the current mean value.
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion)
This method load the options from a ".ini"-like file or memory-stored string list.
bool evaluateMeasurementInGaussian(double measurement)
Determine whether the incoming measurement is inside the [-3sigma, +3sigma] boundaries from the curre...
bool m_median_updated
Is the median up-to-date?
std::vector< double > m_measurements_vec
GLsizei const GLfloat * value
Class to monitor the evolution of a statistical quantity.
bool evaluateMeasurementAbove(double value)
Determine whether the incoming measurement is over the current mean value.
TSlidingWindow(std::string name="window")
GLsizei const GLchar ** string
double m_mean_cached
Cached mean value.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |