32 #ifndef VSMC_RNG_CHI_SQUARED_DISTRIBUTION_HPP 33 #define VSMC_RNG_CHI_SQUARED_DISTRIBUTION_HPP 44 template <
typename RealType>
54 template <
typename RealType>
68 template <
typename RNGType>
82 template <
typename RealType,
typename RNGType>
84 RNGType &rng, std::size_t n, RealType *r, RealType df)
86 static_assert(std::is_floating_point<RealType>::value,
87 "**chi_squared_distribution** USED WITH RealType OTHER THAN FLOATING " 97 #endif // VSMC_RNG_CHI_SQUARED_DISTRIBUTION_HPP
#define VSMC_DEFINE_RNG_DISTRIBUTION_MEMBER_1(T1, m1)
bool chi_squared_distribution_check_param(RealType n)
void chi_squared_distribution(RNGType &rng, std::size_t n, RealType *r, RealType df)
Generating random variates.
void gamma_distribution(RNGType &rng, std::size_t n, RealType *r, RealType alpha, RealType beta)
Generating gamma random variates.
#define VSMC_DEFINE_RNG_DISTRIBUTION_RAND_1(Name, name, p1)
#define VSMC_DEFINE_RNG_DISTRIBUTION_1(Name, name, p1, v1)