Generic histogram class over a value set with type T
.
More...
#include <array.hh>
Public Types | |
typedef T | value |
Public Member Functions | |
array () | |
array (const array &other) | |
void | clear () |
unsigned | nvalues () const |
unsigned | operator() (const T &v) const |
unsigned & | operator() (const T &v) |
array & | operator= (const array &other) |
unsigned & | operator[] (unsigned i) |
unsigned | operator[] (unsigned i) const |
const std::vector< unsigned > & | vect () const |
const mln::value::set< T > & | vset () const |
Protected Attributes | |
std::vector< unsigned > | h_ |
const mln::value::set< T > & | s_ |
Generic histogram class over a value set with type T
.
typedef T mln::histo::array< T >::value |
mln::histo::array< T >::array | ( | ) | [inline] |
References mln::histo::array< T >::clear().
mln::histo::array< T >::array | ( | const array< T > & | other | ) | [inline] |
void mln::histo::array< T >::clear | ( | ) | [inline] |
References mln::histo::array< T >::h_.
Referenced by mln::histo::array< T >::array(), and mln::accu::histo< V >::init().
unsigned mln::histo::array< T >::nvalues | ( | ) | const [inline] |
References mln::histo::array< T >::h_.
Referenced by mln::convert::over_load::from_to_(), and mln::accu::histo< V >::take().
unsigned & mln::histo::array< T >::operator() | ( | const T & | v | ) | [inline] |
References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.
unsigned mln::histo::array< T >::operator() | ( | const T & | v | ) | const [inline] |
References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.
array< T > & mln::histo::array< T >::operator= | ( | const array< T > & | other | ) | [inline] |
References mln::histo::array< T >::h_.
unsigned & mln::histo::array< T >::operator[] | ( | unsigned | i | ) | [inline] |
References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.
unsigned mln::histo::array< T >::operator[] | ( | unsigned | i | ) | const [inline] |
References mln::histo::array< T >::h_, and mln::histo::array< T >::s_.
const std::vector< unsigned > & mln::histo::array< T >::vect | ( | ) | const [inline] |
References mln::histo::array< T >::h_.
Referenced by mln::accu::histo< V >::vect().
const mln::value::set< T > & mln::histo::array< T >::vset | ( | ) | const [inline] |
std::vector<unsigned> mln::histo::array< T >::h_ [protected] |
const mln::value::set<T>& mln::histo::array< T >::s_ [protected] |