IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::random Namespace Reference

Namespaces

namespace  detail

Classes

class  Distribution
 The class that represents a distribution. More...
class  InverseTransformSampling
 A class for inverse transform sampling. More...
struct  normal_cdf
 Functor to calculate the cumulative distribution function (CDF) for a normal distribution. More...
struct  normal_pdf
 Functor to calculate the probability density function (PDF) for a normal distribution. More...
struct  normal_estimate
 Functor to estimate the initial guess for sampling normal distribution. More...
struct  NormalDistributionFunctions
class  NormalDistribution
struct  randn
 Functor to generate random numbers from a normal distribution. More...
struct  randu
 Functor to generate random numbers from a uniform distribution. More...

Functions

template<typename T>
KOKKOS_FUNCTION T 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 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 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.
template<typename T>
KOKKOS_FUNCTION T uniform_cdf_func (T x)
template<typename T>
KOKKOS_FUNCTION T uniform_pdf_func ()
template<typename T>
KOKKOS_FUNCTION T uniform_estimate_func (T u)

Function Documentation

◆ 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
xInput value.
meanMean of the distribution.
stddevStandard deviation of the distribution.
Returns
The CDF value.

Definition at line 23 of file NormalDistribution.h.

Referenced by ippl::random::normal_cdf< T >::operator()(), and ippl::random::NormalDistributionFunctions< T >::CDF::operator()().

Here is the caller graph for this function:

◆ 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
xInput value.
meanMean of the distribution.
stddevStandard deviation of the distribution.
Returns
The estimate value.

Definition at line 52 of file NormalDistribution.h.

Referenced by ippl::random::normal_estimate< T >::operator()(), and ippl::random::NormalDistributionFunctions< T >::Estimate::operator()().

Here is the caller graph for this function:

◆ 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
xInput value.
meanMean of the distribution.
stddevStandard deviation of the distribution.
Returns
The PDF value.

Definition at line 36 of file NormalDistribution.h.

References pi.

Referenced by ippl::random::normal_pdf< T >::operator()(), and ippl::random::NormalDistributionFunctions< T >::PDF::operator()().

Here is the caller graph for this function:

◆ uniform_cdf_func()

template<typename T>
KOKKOS_FUNCTION T ippl::random::uniform_cdf_func ( T x)

Definition at line 18 of file UniformDistribution.h.

Referenced by CustomDistributionFunctions::CDF::operator()().

Here is the caller graph for this function:

◆ uniform_estimate_func()

template<typename T>
KOKKOS_FUNCTION T ippl::random::uniform_estimate_func ( T u)

Definition at line 28 of file UniformDistribution.h.

◆ uniform_pdf_func()

template<typename T>
KOKKOS_FUNCTION T ippl::random::uniform_pdf_func ( )

Definition at line 23 of file UniformDistribution.h.

Referenced by CustomDistributionFunctions::PDF::operator()().

Here is the caller graph for this function: