herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
exsample::fast_small_histogram< Statistics > Struct Template Reference

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_histogramoperator= (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
 

Detailed Description

template<class Statistics>
struct exsample::fast_small_histogram< Statistics >

Fast, zero memory-overhead one-dimensional histogram with 2^n equally spaced bins.

Definition at line 174 of file utility.h.


The documentation for this struct was generated from the following file: