#include <hpp/statistics/success-bin.hh>
Public Types | |
typedef Statistics< SuccessBin > | Parent |
![]() | |
typedef std::list< SuccessBin > | Container |
typedef Container::iterator | iterator |
typedef Container::const_iterator | const_iterator |
Public Member Functions | |
SuccessStatistics (const std::string name="", const std::size_t &logRatio=2) | |
Constructor. | |
SuccessStatistics (const SuccessStatistics &other) | |
Copy Constructor. | |
void | addSuccess () |
Add a 'success'. | |
void | addFailure (const SuccessBin::Reason &r=SuccessBin::REASON_UNKNOWN) |
bool | isLowRatio (const bool autoPrint=false) const |
std::size_t | nbSuccess () const |
Count the number of success. | |
std::size_t | nbFailure () const |
Count the number of failure, in total. | |
std::size_t | nbFailure (const SuccessBin::Reason &r) const |
Count the number of a particular failure. | |
![]() | |
virtual std::size_t | freq (const SuccessBin &bin) const |
virtual Proba_t | relativeFreq (const SuccessBin &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 SuccessBin &bin) const |
const_iterator | find (const U &value) const |
const_iterator | begin () const |
const_iterator | end () const |
void | clear () |
Remove all element. | |
virtual std::size_t | freq (const SuccessBin &bin) const |
virtual Proba_t | relativeFreq (const SuccessBin &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 SuccessBin &bin) const |
const_iterator | find (const U &value) const |
const_iterator | begin () const |
const_iterator | end () const |
void | clear () |
Remove all element. | |
Public Attributes | |
std::string | name_ |
std::size_t | logRatio_ |
If nbSuccess() * logRatio < numberOfObservations(), write to log. | |
Additional Inherited Members | |
![]() | |
Statistics () | |
Constructor. | |
virtual SuccessBin & | increment (const SuccessBin &bin) __attribute__((deprecated)) |
virtual iterator | insert (const SuccessBin &bin) |
Statistics () | |
Constructor. | |
virtual SuccessBin & | increment (const SuccessBin &bin) __attribute__((deprecated)) |
virtual iterator | insert (const SuccessBin &bin) |
|
inline |
Constructor.
|
inline |
Copy Constructor.
|
inline |
Add a 'failure'
r | the reason of the 'failure' |
|
inline |
Add a 'success'.
|
inline |
|
inline |
Count the number of failure, in total.
|
inline |
Count the number of a particular failure.
|
inline |
Count the number of success.
std::size_t hpp::statistics::SuccessStatistics::logRatio_ |
If nbSuccess() * logRatio < numberOfObservations(), write to log.
std::string hpp::statistics::SuccessStatistics::name_ |