BioCMAMC-ST
|
Concept for probability distribution laws. More...
#include <prng_extension.hpp>
Concept for probability distribution laws.
The ProbabilityLaw
concept defines the requirements for a type T
to model a probability distribution with floating-point computations. It ensures that the type provides methods for drawing random samples and computing common statistical measures such as mean, variance, and skewness.
T | The type representing a probability distribution. |
F | The floating-point type used for computations. |
DeviceType | The execution device type for random number generation. |
Requirements:
T
must support sampling using a Kokkos random number generator.T
must provide methods to compute statistical properties:mean()
: Returns the expected value (mean) of the distribution.var()
: Returns the variance of the distribution.skewness()
: Returns the skewness, measuring asymmetry.Example usage: