Herwig 7.3.0
|
Fast, zero memory-overhead one-dimensional histogram with 2^n equally spaced bins. More...
#include <utility.h>
Public Member Functions | |
fast_small_histogram () | |
default constructor | |
fast_small_histogram (const fast_small_histogram &x) | |
copy constructor | |
fast_small_histogram & | operator= (const fast_small_histogram &x) |
assignment | |
fast_small_histogram (std::size_t d) | |
construct from depth d, creating 2^d bins | |
Statistics & | bin (double lower, double upper, double event) |
return the bin from event belongs to given outer boundaries | |
template<class OStream > | |
void | put (OStream &os) const |
put histogram to an ostream | |
template<class IStream > | |
void | get (IStream &is) |
get histogram from an istream | |
Public Attributes | |
std::size_t | depth |
the depth, defining a histogram of 2^depth bins | |
std::unique_ptr< Statistics[]> | bins |
the contained statistics objects | |
Fast, zero memory-overhead one-dimensional histogram with 2^n equally spaced bins.
|
inline |
|
inline |
copy constructor
Definition at line 181 of file utility.h.
References exsample::fast_small_histogram< Statistics >::bins, and exsample::fast_small_histogram< Statistics >::depth.
|
inlineexplicit |
construct from depth d, creating 2^d bins
Definition at line 205 of file utility.h.
References exsample::fast_small_histogram< Statistics >::bins.
|
inline |
return the bin from event belongs to given outer boundaries
Definition at line 211 of file utility.h.
References exsample::fast_small_histogram< Statistics >::bins, and exsample::fast_small_histogram< Statistics >::depth.
|
inline |
get histogram from an istream
Definition at line 251 of file utility.h.
References exsample::fast_small_histogram< Statistics >::bins, and exsample::fast_small_histogram< Statistics >::depth.
|
inline |
assignment
Definition at line 191 of file utility.h.
References exsample::fast_small_histogram< Statistics >::bins, and exsample::fast_small_histogram< Statistics >::depth.
|
inline |
put histogram to an ostream
Definition at line 241 of file utility.h.
References exsample::fast_small_histogram< Statistics >::bins, exsample::fast_small_histogram< Statistics >::depth, and exsample::ostream_traits< OStream >::separator().
std::unique_ptr<Statistics[]> exsample::fast_small_histogram< Statistics >::bins |
the contained statistics objects
Definition at line 237 of file utility.h.
Referenced by exsample::fast_small_histogram< Statistics >::bin(), exsample::fast_small_histogram< Statistics >::fast_small_histogram(), exsample::fast_small_histogram< Statistics >::get(), exsample::fast_small_histogram< Statistics >::operator=(), and exsample::fast_small_histogram< Statistics >::put().
std::size_t exsample::fast_small_histogram< Statistics >::depth |
the depth, defining a histogram of 2^depth bins
Definition at line 234 of file utility.h.
Referenced by exsample::fast_small_histogram< Statistics >::bin(), exsample::fast_small_histogram< Statistics >::fast_small_histogram(), exsample::fast_small_histogram< Statistics >::get(), exsample::fast_small_histogram< Statistics >::operator=(), and exsample::fast_small_histogram< Statistics >::put().