BioCMAMC-ST
MC::Distributions::Exponential< F > Struct Template Reference

Represents a Exponential probability distribution. More...

#include <prng_extension.hpp>

Collaboration diagram for MC::Distributions::Exponential< F >:
[legend]

Public Member Functions

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

Public Attributes

lambda

Static Public Attributes

static constexpr bool use_kokkos_log = true

Detailed Description

template<FloatingPointType F>
struct MC::Distributions::Exponential< F >

Represents a Exponential probability distribution.

The exp distribution is only parameterized by lambda .

Template Parameters
FFloating-point type (must satisfy FloatingPointType).

Member Function Documentation

◆ draw()

template<FloatingPointType F>
template<class DeviceType>
KOKKOS_INLINE_FUNCTION F MC::Distributions::Exponential< F >::draw ( Kokkos::Random_XorShift1024< DeviceType > & gen) const
inline
Here is the call graph for this function:

◆ mean()

template<FloatingPointType F>
KOKKOS_INLINE_FUNCTION F MC::Distributions::Exponential< F >::mean ( ) const
inlinenodiscard

◆ skewness()

template<FloatingPointType F>
KOKKOS_INLINE_FUNCTION F MC::Distributions::Exponential< F >::skewness ( ) const
inlinenodiscard

◆ var()

template<FloatingPointType F>
KOKKOS_INLINE_FUNCTION F MC::Distributions::Exponential< F >::var ( ) const
inlinenodiscard

Member Data Documentation

◆ lambda

◆ use_kokkos_log

template<FloatingPointType F>
bool MC::Distributions::Exponential< F >::use_kokkos_log = true
staticconstexpr

The documentation for this struct was generated from the following file: