Celeritas 0.6.0-rc.2.40+develop.df0b0c3b
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::test::Histogram Class Reference

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 constcounts () const
 
VecDbl calc_density () const
 Get the result as a probability desnity.
 

Detailed Description

Calculate the histogram of a set of values.

This uses double precision since values are being accumulated and tallied.

Member Function Documentation

◆ operator()()

void celeritas::test::Histogram::operator() ( double  value)
inline

Update the histogram with a value.

Values outside of range are allowable and will show as a deficit in the resulting tally.


The documentation for this class was generated from the following files: