#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 | skewness () const |
| | Returns the skewness of the distribution.
|
|
| template<class DeviceType> |
| static KOKKOS_INLINE_FUNCTION F | draw_from (Kokkos::Random_XorShift1024< DeviceType > &gen, F min, F max) |
| | Static method to draw a sample from N(μ, σ).
|
◆ 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>
| KOKKOS_INLINE_FUNCTION F MC::Distributions::Uniform< F >::draw_from |
( |
Kokkos::Random_XorShift1024< DeviceType > & | gen, |
|
|
F | min, |
|
|
F | max ) |
|
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).
◆ var()
Returns the variance of the distribution.
- Returns
- Variance (σ²).
◆ max
◆ min
The documentation for this struct was generated from the following file: