|
BioCMAMC-ST
|
Represents a TruncatedNormal (Gaussian) probability distribution. More...
#include <prng_extension.hpp>
Public Member Functions | |
| TruncatedNormal ()=default | |
| KOKKOS_INLINE_FUNCTION constexpr | TruncatedNormal (F m, F s, F l, F u) |
| template<class DeviceType> | |
| KOKKOS_INLINE_FUNCTION F | draw (Kokkos::Random_XorShift1024< DeviceType > &gen) const |
| KOKKOS_INLINE_FUNCTION F | mean () const |
| KOKKOS_INLINE_FUNCTION F | var () const |
| KOKKOS_INLINE_FUNCTION F | skewness () const |
Static Public Member Functions | |
| template<class DeviceType> | |
| static KOKKOS_INLINE_FUNCTION F | draw_from (Kokkos::Random_XorShift1024< DeviceType > &gen, F mu, F sigma, F lower, F upper) |
Public Attributes | |
| F | mu |
| F | sigma |
| F | lower |
| F | upper |
Represents a TruncatedNormal (Gaussian) probability distribution.
The normal distribution is parameterized by a mean, a standard deviation and lower and upper bound. It supports random sampling, computing statistical properties.
| F | Floating-point type (must satisfy FloatingPointType). |
|
default |
|
inlineconstexpr |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
| F MC::Distributions::TruncatedNormal< F >::lower |
| F MC::Distributions::TruncatedNormal< F >::mu |
| F MC::Distributions::TruncatedNormal< F >::sigma |
| F MC::Distributions::TruncatedNormal< F >::upper |