Celeritas 0.6.0-rc.2.40+develop.df0b0c3b
|
Calculate the histogram of a set of values. More...
#include <Histogram.hh>
Public Types | |
Type aliases | |
using | Dbl2 = Array< double, 2 > |
using | VecCount = std::vector< size_type > |
using | VecDbl = std::vector< double > |
Public Member Functions | |
Histogram (size_type num_bins, Dbl2 range) | |
Contruct with the number of bins and range. | |
void | operator() (double value) |
Update the histogram with a value. | |
VecCount const & | counts () const |
VecDbl | calc_density () const |
Get the result as a probability desnity. | |
Calculate the histogram of a set of values.
This uses double precision since values are being accumulated and tallied.
Update the histogram with a value.
Values outside of range
are allowable and will show as a deficit in the resulting tally.