Abstract class representing a bin. More...
#include <hpp/statistics/bin.hh>
Public Member Functions | |
size_t | freq () const |
Return the number of element in the bin. More... | |
size_t | operator++ () |
Add an occurence. More... | |
size_t | operator++ (int) |
Add an occurence. More... | |
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.
References hpp::statistics::operator<<().
|
inline |
Return the number of element in the bin.
|
inline |
Add an occurence.
|
inline |
Add an occurence.
|
virtual |
Print the bin.
|
pure virtual |
Print the inner value of the bin.