32 #ifndef MCKL_RANDOM_ARCSINE_DISTRIBUTION_HPP 33 #define MCKL_RANDOM_ARCSINE_DISTRIBUTION_HPP 42 template <
typename RealType>
48 template <std::
size_t,
typename RealType,
typename RNGType>
50 RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
53 mul(n, const_pi_by2<RealType>(), r, r);
62 Arcsine, arcsine, RealType, RealType, a, RealType, b)
64 template <
typename RealType>
82 template <
typename RNGType>
89 return param.
a() + (param.
b() - param.
a()) * (r * r);
97 #endif // MCKL_RANDOM_ARCSINE_DISTRIBUTION_HPP #define MCKL_DEFINE_RANDOM_DISTRIBUTION_2( Name, name, T, T1, p1, v1, T2, p2, v2)
Standard uniform distribution on [0, 1)
void mul(std::size_t n, const float *a, const float *b, float *y)
void sin(std::size_t n, const float *a, float *y)
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_RAND(Name, T)
RealType u01(UIntType u)
Convert uniform unsigned integers to floating points within [0, 1].
void sqr(std::size_t n, const float *a, float *y)
void arcsine_distribution_impl(RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
void u01_co_distribution(RNGType &rng, std::size_t n, RealType *r)
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_BATCH_2( Name, name, T, T1, p1, T2, p2)
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_MEMBER_0
bool arcsine_distribution_check_param(RealType a, RealType b)
#define MCKL_DEFINE_RANDOM_DISTRIBUTION_ASSERT_REAL_TYPE(Name)