32 #ifndef VSMC_RNG_WEIBULL_DISTRIBUTION_HPP    33 #define VSMC_RNG_WEIBULL_DISTRIBUTION_HPP    45 template <
typename RealType>
    48     return a > 0 && b > 0;
    55 template <
typename RealType>
    67         return std::numeric_limits<result_type>::max 
VSMC_MNE();
    73     template <
typename RNGType>
    86 template <
typename RealType, 
typename RNGType>
    88     RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
    92     if (is_equal<RealType>(a, 1)) {
    95         mul(n, static_cast<RealType>(-1), r, r);
   107 template <
typename RealType, 
typename RNGType>
   109     RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
   111     const std::size_t k = 1000;
   112     const std::size_t m = n / k;
   113     const std::size_t l = n % k;
   114     for (std::size_t i = 0; i != m; ++i)
   119 template <
typename RealType, 
typename RNGType>
   121     std::size_t n, RealType *r)
   128 #endif // VSMC_RNG_WEIBULL_DISTRIBUTION_HPP 
Standard uniform distribution with open/closed variants. 
 
void mul(std::size_t n, const float *a, const float *b, float *y)
 
bool weibull_distribution_check_param(RealType a, RealType b)
 
void u01_oo_distribution(RNGType &rng, std::size_t n, RealType *r)
Generate standard uniform random variates on open-open interval. 
 
void rng_rand(RNGType &rng, BernoulliDistribution< IntType > &dist, std::size_t n, IntType *r)
 
void weibull_distribution_impl(RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 
#define VSMC_DEFINE_RNG_DISTRIBUTION_OPERATORS
 
#define VSMC_DEFINE_RNG_DISTRIBUTION_2(Name, name, T, T1, p1, v1, T2, p2, v2)
 
void exp(std::size_t n, const float *a, float *y)
 
void weibull_distribution(RNGType &, std::size_t, RealType *, RealType, RealType)
Generating weibull random variates. 
 
void log(std::size_t n, const float *a, float *y)