hpp-statistics
4.9.0
Classes for doing statistics.
|
#include <hpp/statistics/bin.hh>
Public Member Functions | |
const std::size_t & | freq () const |
Return the number of element in the bin. More... | |
std::size_t | operator++ () |
std::size_t | operator++ (int) |
virtual std::ostream & | print (std::ostream &os) const |
Print the bin. More... | |
virtual std::ostream & | printValue (std::ostream &os) const =0 |
Print the inner value of the bin. More... | |
Protected Member Functions | |
Bin () | |
Constructor. More... | |
Abstract class representing a bin.
Bins are use for statistics. They keep the number of of apparition of a given value. Inherited class should also implement comparison and equality operators.
|
inlineprotected |
Constructor.
|
inline |
Return the number of element in the bin.
|
inline |
Add an occurence
|
inline |
Add an occurence
|
inlinevirtual |
Print the bin.
|
pure virtual |
Print the inner value of the bin.