class
#include <src/Statistics/UniPDF.hpp>
UniPDF Univariate PDF estimator.
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(tk::
real sample) - void addPDF(const UniPDF& p)
- void zero() noexcept
- Zero bins.
-
auto map() const -> const map_
type& noexcept -
auto binsize() const -> tk::
real noexcept - auto extents() const -> std::array<long, 2*dim>
-
auto integral() const -> tk::
real
Pack/Unpack: Serialize UniPDF object for Charm++
Typedef documentation
using tk:: UniPDF:: map_type = std::unordered_map<key_ type, tk:: real>
Univariate PDF.
The underlying container type is an unordered_map where the key is one bin id corresponding to the single sample space dimension, and the mapped value is the sample counter. The hasher functor used here is the default for the key type provided by the standard library.
Function documentation
std::size_t tk:: UniPDF:: nsample() const noexcept
Returns | Number of samples collected |
---|
Accessor to number of samples
void tk:: UniPDF:: pup(PUP::er& p)
Parameters | |
---|---|
p in/out | Charm++'s PUP::er serializer object reference |
Pack/Unpack serialize member function