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 <
typename RealType, 
typename RNGType>
    81     RNGType &rng, std::size_t n, RealType *r, RealType m, RealType s)
    91 template <
typename RealType, 
typename RNGType>
    93     RealType logmean, RealType logstddev)
    95     static_assert(std::is_floating_point<RealType>::value,
    96         "**lognormal_distribution** USED WITH RealType OTHER THAN FLOATING "    99     const std::size_t k = 1024;
   100     const std::size_t m = n / k;
   101     const std::size_t l = n % k;
   102     for (std::size_t i = 0; i != m; ++i, r += k)
   111 #endif // VSMC_RNG_LOGNORMAL_DISTRIBUTION_HPP 
#define VSMC_DEFINE_RNG_DISTRIBUTION_2(Name, name, p1, v1, p2, v2)                    
 
void lognormal_distribution(RNGType &, std::size_t, RealType *, RealType, RealType)
Generating lognormal random variates. 
 
void lognormal_distribution_impl(RNGType &rng, std::size_t n, RealType *r, RealType m, RealType s)
 
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_RAND_2(Name, name, p1, p2)