class
BiPDFJoint bivariate PDF estimator.
Contents
Public types
Public static variables
- static const std::size_t dim
- Number of sample space dimensions.
Constructors, destructors, conversion operators
Public functions
- auto nsample() const -> std::size_t noexcept
-
void add(std::array<tk::
real, dim> sample) - void addPDF(const BiPDF& p)
- void zero() noexcept
- Zero bins.
-
auto map() const -> const map_
type& noexcept -
auto binsize() const -> const std::array<tk::
real, dim>& noexcept - auto extents() const -> std::array<long, 2*dim>
Pack/Unpack: Serialize BiPDF object for Charm++
Typedef documentation
using tk:: BiPDF:: map_type = std::unordered_map<key_ type, tk:: real, key_ hash>
Joint bivariate PDF.
The underlying container type is an unordered_map where the key is two bin ids corresponding to the two sample space dimensions, and the mapped value is the sample counter. The hasher functor, defined by key_
Function documentation
std::size_t tk:: BiPDF:: nsample() const noexcept
Returns | Number of samples collected |
---|
Accessor to number of samples
void tk:: BiPDF:: pup(PUP::er& p)
Parameters | |
---|---|
p in/out | Charm++'s PUP::er serializer object reference |
Pack/Unpack serialize member function