#include "Random/Distribution.h"
#include "Random/Utility.h"
Go to the source code of this file.
|
| template<typename T > |
| KOKKOS_FUNCTION T | ippl::random::normal_cdf_func (T x, T mean, T stddev) |
| | Calculate the cumulative distribution function (CDF) for a normal distribution.
|
| |
| template<typename T > |
| KOKKOS_FUNCTION T | ippl::random::normal_pdf_func (T x, T mean, T stddev) |
| | Calculate the probability density function (PDF) for a normal distribution.
|
| |
| template<typename T > |
| KOKKOS_FUNCTION T | ippl::random::normal_estimate_func (T u, T mean, T stddev) |
| | An estimator for the initial guess that is used in Newton-Raphson method of Inverste Transfrom Sampling.
|
| |
◆ normal_cdf_func()
template<typename T >
| KOKKOS_FUNCTION T ippl::random::normal_cdf_func |
( |
T |
x, |
|
|
T |
mean, |
|
|
T |
stddev |
|
) |
| |
Calculate the cumulative distribution function (CDF) for a normal distribution.
- Parameters
-
| x | Input value. |
| mean | Mean of the distribution. |
| stddev | Standard deviation of the distribution. |
- Returns
- The CDF value.
◆ normal_estimate_func()
template<typename T >
| KOKKOS_FUNCTION T ippl::random::normal_estimate_func |
( |
T |
u, |
|
|
T |
mean, |
|
|
T |
stddev |
|
) |
| |
An estimator for the initial guess that is used in Newton-Raphson method of Inverste Transfrom Sampling.
- Parameters
-
| u | Input value. |
| mean | Mean of the distribution. |
| stddev | Standard deviation of the distribution. |
- Returns
- The estimate value.
◆ normal_pdf_func()
template<typename T >
| KOKKOS_FUNCTION T ippl::random::normal_pdf_func |
( |
T |
x, |
|
|
T |
mean, |
|
|
T |
stddev |
|
) |
| |
Calculate the probability density function (PDF) for a normal distribution.
- Parameters
-
| x | Input value. |
| mean | Mean of the distribution. |
| stddev | Standard deviation of the distribution. |
- Returns
- The PDF value.