Represents a normal (Gaussian) probability distribution.
More...
#include <prng_extension.hpp>
|
template<class DeviceType > |
KOKKOS_INLINE_FUNCTION F | draw (Kokkos::Random_XorShift1024< DeviceType > &gen) const |
| Draws a random sample from the distribution.
|
|
KOKKOS_INLINE_FUNCTION F | mean () const |
| Returns the mean of the distribution.
|
|
KOKKOS_INLINE_FUNCTION F | var () const |
| Returns the variance of the distribution.
|
|
KOKKOS_INLINE_FUNCTION F | stddev () const |
| Returns the standard deviation of the distribution.
|
|
KOKKOS_INLINE_FUNCTION F | skewness () const |
| Returns the skewness of the distribution.
|
|
|
template<class DeviceType > |
static KOKKOS_INLINE_FUNCTION F | draw_from (Kokkos::Random_XorShift1024< DeviceType > &gen, F mu, F sigma) |
| Static method to draw a sample from N(μ, σ).
|
|
|
F | mu |
| Mean.
|
|
F | sigma |
| Standard deviation.
|
|
Represents a normal (Gaussian) probability distribution.
The normal distribution is parameterized by a mean and a standard deviation. It supports random sampling, computing statistical properties.
- Template Parameters
-
◆ draw()
template<class DeviceType >
Draws a random sample from the distribution.
- Template Parameters
-
DeviceType | The Kokkos execution device. |
- Parameters
-
gen | Kokkos random number generator. |
- Returns
- A normally distributed random sample.
◆ draw_from()
template<class DeviceType >
static KOKKOS_INLINE_FUNCTION F MC::Distributions::Normal< F >::draw_from |
( |
Kokkos::Random_XorShift1024< DeviceType > & | gen, |
|
|
F | mu, |
|
|
F | sigma ) |
|
inlinestatic |
Static method to draw a sample from N(μ, σ).
- Template Parameters
-
DeviceType | The Kokkos execution device. |
- Parameters
-
gen | Kokkos random number generator. |
mu | Mean of the distribution. |
sigma | Standard deviation of the distribution. |
- Returns
- A normally distributed random sample.
◆ mean()
Returns the mean of the distribution.
- Returns
- Mean (μ).
◆ skewness()
Returns the skewness of the distribution.
- Returns
- Skewness (always 0 for a normal distribution).
◆ stddev()
Returns the standard deviation of the distribution.
- Returns
- Standard deviation (σ).
◆ var()
Returns the variance of the distribution.
- Returns
- Variance (σ²).
◆ mu
◆ sigma
The documentation for this struct was generated from the following file: