#include <Histo.h>


Public Types | |
| typedef double | TData |
Public Member Functions | |
| Histo (unsigned long nbBin=10) | |
| Histo (const Histo &h) | |
| const Histo & | operator= (const Histo &h) |
| virtual | ~Histo () |
| TData | count (unsigned long indBound) const |
| TData | lowerBound (unsigned long indBound) const |
| TData | higherBound (unsigned long indBound) const |
| TData | operator() (TData score, int type=0) const |
| void | accumulateValue (TData value) |
| void | computeHisto (int opt=0) |
| void | div (const real_t factor) |
| unsigned long | size () const |
| void | load (const FileName &f) |
| void | save (const FileName &f) const |
| void | saveGnuplot (const FileName &f) const |
| virtual String | getClassName () const |
| virtual String | toString () const |
Static Public Attributes | |
| static const TData | EPS = 0.0000000000000000001 |
Private Member Functions | |
| bool | operator== (const Histo &) |
| bool | operator!= (const Histo &) |
Private Attributes | |
| unsigned long | _nbBin |
| DoubleVector | _bound |
| DoubleVector | _count |
| DoubleVector | _data |
Friends | |
| class | TestHisto |
Toolkit for histogram computation
Class Histo is the central class for score distributions
Definition at line 84 of file Histo.h.
| typedef double alize::Histo::TData |
| Histo::Histo | ( | unsigned long | nbBin = 10 ) |
[explicit] |
| Histo::Histo | ( | const Histo & | h ) |
| void Histo::accumulateValue | ( | TData | value ) |
Adds a value in the temporary workspace
| value |
Definition at line 149 of file Histo.cpp.
References _data, and alize::RealVector< T >::addValue().
| void Histo::computeHisto | ( | int | opt = 0 ) |
Computes the histogram Free the temporary workspace if opt == 0 (default)
| opt | the option to use |
| Exception | if less than 2 data stored |
Definition at line 151 of file Histo.cpp.
References _bound, _count, _data, _nbBin, alize::RealVector< T >::ascendingSort(), alize::RealVector< T >::clear(), EPS, and alize::RealVector< T >::size().
| Histo::TData Histo::count | ( | unsigned long | indBound ) | const |
| void Histo::div | ( | const real_t | factor ) |
| String Histo::getClassName | ( | ) | const [virtual] |
Returns the name of the class
Implements alize::Object.
| Histo::TData Histo::higherBound | ( | unsigned long | indBound ) | const |
| void Histo::load | ( | const FileName & | f ) |
Loads an Histogramme from a file
| f | file name |
Definition at line 285 of file Histo.cpp.
References _bound, _count, and alize::String::c_str().
| Histo::TData Histo::lowerBound | ( | unsigned long | indBound ) | const |
| bool alize::Histo::operator!= | ( | const Histo & | ) | [private] |
Not implemented
| Histo::TData Histo::operator() | ( | TData | score, |
| int | type = 0 |
||
| ) | const |
| bool alize::Histo::operator== | ( | const Histo & | ) | [private] |
| void Histo::save | ( | const FileName & | f ) | const |
| void Histo::saveGnuplot | ( | const FileName & | f ) | const |
| unsigned long Histo::size | ( | ) | const |
| String Histo::toString | ( | ) | const [virtual] |
This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object
Reimplemented from alize::Object.
Definition at line 362 of file Histo.cpp.
References _bound, _count, _nbBin, and alize::String::valueOf().
DoubleVector alize::Histo::_bound [private] |
Definition at line 181 of file Histo.h.
Referenced by computeHisto(), higherBound(), load(), lowerBound(), operator()(), operator=(), save(), saveGnuplot(), and toString().
DoubleVector alize::Histo::_count [private] |
Definition at line 182 of file Histo.h.
Referenced by computeHisto(), count(), div(), load(), operator()(), operator=(), save(), saveGnuplot(), and toString().
DoubleVector alize::Histo::_data [private] |
Definition at line 183 of file Histo.h.
Referenced by accumulateValue(), computeHisto(), and operator=().
unsigned long alize::Histo::_nbBin [private] |
Definition at line 180 of file Histo.h.
Referenced by computeHisto(), count(), div(), higherBound(), lowerBound(), operator()(), operator=(), save(), saveGnuplot(), size(), and toString().
const Histo::TData Histo::EPS = 0.0000000000000000001 [static] |
Definition at line 176 of file Histo.h.
Referenced by computeHisto().
1.7.2