32 #ifndef VSMC_RNG_LOGNORMAL_DISTRIBUTION_HPP 33 #define VSMC_RNG_LOGNORMAL_DISTRIBUTION_HPP 44 template <
typename RealType>
54 template <
typename RealType>
69 template <
typename RNGType>
72 return std::exp(param.
m() + param.
s() * normal_(rng));
79 template <std::
size_t,
typename RealType,
typename RNGType>
81 RNGType &rng, std::size_t n, RealType *r, RealType m, RealType s)
96 #endif // VSMC_RNG_LOGNORMAL_DISTRIBUTION_HPP
#define VSMC_DEFINE_RNG_DISTRIBUTION_2(Name, name, p1, v1, p2, v2)
void lognormal_distribution_impl(RNGType &rng, std::size_t n, RealType *r, RealType m, RealType s)
#define VSMC_DEFINE_RNG_DISTRIBUTION_IMPL_2(name, p1, p2)
bool lognormal_distribution_check_param(RealType, RealType s)
void normal_distribution(RNGType &, std::size_t, RealType *, RealType, RealType)
Generating Normal random variates.
void exp(std::size_t n, const float *a, float *y)
#define VSMC_DEFINE_RNG_DISTRIBUTION_MEMBER_1(T1, m1)
#define VSMC_DEFINE_RNG_DISTRIBUTION_RAND_2(Name, name, p1, p2)