|
hpp-statistics 6.0.0
Classes for doing statistics.
|
#include <hpp/statistics/bin.hh>
Public Types | |
| typedef std::list< T > | Container |
| typedef Container::iterator | iterator |
| typedef Container::const_iterator | const_iterator |
Public Member Functions | |
| virtual std::size_t | freq (const T &bin) const |
| virtual Proba_t | relativeFreq (const T &bin) const |
| std::size_t | numberOfObservations () const |
| unsigned int | numberOfBins () const |
| Return the number of bins. | |
| virtual std::ostream & | print (std::ostream &os) const |
| Put the results in a stream. | |
| const_iterator | find (const T &bin) const |
| template<typename U > | |
| const_iterator | find (const U &value) const |
| const_iterator | begin () const |
| const_iterator | end () const |
| void | clear () |
| Remove all element. | |
Protected Member Functions | |
| Statistics () | |
| Constructor. | |
| virtual T & | increment (const T &bin) __attribute__((deprecated)) |
| virtual iterator | insert (const T &bin) |
Template class to do statistics. You should derivate class Bin and construct a class Statistics < YourBin >.
| typedef Container::const_iterator hpp::statistics::Statistics< T >::const_iterator |
| typedef std::list<T> hpp::statistics::Statistics< T >::Container |
| typedef Container::iterator hpp::statistics::Statistics< T >::iterator |
|
protected |
Constructor.
|
inline |
Return an iterator pointing at the beginning of the set of bins.
|
inline |
Remove all element.
|
inline |
Return an iterator pointing at the end of the set of bins.
| Statistics< T >::const_iterator hpp::statistics::Statistics< T >::find | ( | const T & | bin | ) | const |
| Statistics< T >::const_iterator hpp::statistics::Statistics< T >::find | ( | const U & | value | ) | const |
|
virtual |
|
protectedvirtual |
Increment a Bin
|
protectedvirtual |
insert a Bin.
|
inline |
Return the number of bins.
|
inline |
Return the number of times an observation has recorded. It is the total number of observations.
|
virtual |
Put the results in a stream.
|
virtual |