Home
last modified time | relevance | path

Searched refs:__pr (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__random/
H A Dpoisson_distribution.h138 _IntType poisson_distribution<_IntType>::operator()(_URNG& __urng, const param_type& __pr) { in operator()
142 if (__pr.__mean_ < 10) { in operator()
144 for (double __p = __urd(__urng); __p > __pr.__l_; ++__tx) in operator()
148 double __g = __pr.__mean_ + __pr.__s_ * normal_distribution<double>()(__urng); in operator()
152 if (__tx >= __pr.__l_) in operator()
154 __difmuk = __pr.__mean_ - __tx; in operator()
156 if (__pr.__d_ * __u >= __difmuk * __difmuk * __difmuk) in operator()
170 __tx = std::trunc(__pr.__mean_ + __pr.__s_ * __t); in operator()
171 __difmuk = __pr.__mean_ - __tx; in operator()
178 __px = -__pr.__mean_; in operator()
[all …]
H A Dbinomial_distribution.h129 _IntType binomial_distribution<_IntType>::operator()(_URNG& __g, const param_type& __pr) { in operator()
131 if (__pr.__t_ == 0 || __pr.__p_ == 0) in operator()
133 if (__pr.__p_ == 1) in operator()
134 return __pr.__t_; in operator()
136 double __u = __gen(__g) - __pr.__pr_; in operator()
138 return __pr.__r0_; in operator()
139 double __pu = __pr.__pr_; in operator()
141 result_type __ru = __pr.__r0_; in operator()
146 __pd *= __rd / (__pr.__odds_ratio_ * (__pr.__t_ - __rd + 1)); in operator()
155 if (__ru <= __pr.__t_) { in operator()
[all …]
H A Dnegative_binomial_distribution.h101 _IntType negative_binomial_distribution<_IntType>::operator()(_URNG& __urng, const param_type& __pr in operator()
103 result_type __k = __pr.k(); in operator()
104 double __p = __pr.p(); in operator()
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__random/
H A Dpoisson_distribution.h133 _IntType poisson_distribution<_IntType>::operator()(_URNG& __urng, const param_type& __pr) { in operator()
137 if (__pr.__mean_ < 10) { in operator()
139 for (double __p = __urd(__urng); __p > __pr.__l_; ++__tx) in operator()
143 double __g = __pr.__mean_ + __pr.__s_ * normal_distribution<double>()(__urng); in operator()
147 if (__tx >= __pr.__l_) in operator()
149 __difmuk = __pr.__mean_ - __tx; in operator()
151 if (__pr.__d_ * __u >= __difmuk * __difmuk * __difmuk) in operator()
165 __tx = std::trunc(__pr.__mean_ + __pr.__s_ * __t); in operator()
166 __difmuk = __pr.__mean_ - __tx; in operator()
173 __px = -__pr.__mean_; in operator()
[all …]
H A Dbinomial_distribution.h122 _IntType binomial_distribution<_IntType>::operator()(_URNG& __g, const param_type& __pr) { in operator()
124 if (__pr.__t_ == 0 || __pr.__p_ == 0) in operator()
126 if (__pr.__p_ == 1) in operator()
127 return __pr.__t_; in operator()
129 double __u = __gen(__g) - __pr.__pr_; in operator()
131 return __pr.__r0_; in operator()
132 double __pu = __pr.__pr_; in operator()
134 result_type __ru = __pr.__r0_; in operator()
139 __pd *= __rd / (__pr.__odds_ratio_ * (__pr.__t_ - __rd + 1)); in operator()
148 if (__ru <= __pr.__t_) { in operator()
[all …]
H A Dnegative_binomial_distribution.h96 _IntType negative_binomial_distribution<_IntType>::operator()(_URNG& __urng, const param_type& __pr in operator()
98 result_type __k = __pr.k(); in operator()
99 double __p = __pr.p(); in operator()
/freebsd/contrib/llvm-project/libcxx/include/__memory_resource/
H A Dpolymorphic_allocator.h156 _LIBCPP_HIDE_FROM_ABI void construct(pair<_T1, _T2>* __p, const pair<_U1, _U2>& __pr) { in construct() argument
157 …onstruct(__p, piecewise_construct, std::forward_as_tuple(__pr.first), std::forward_as_tuple(__pr.s… in construct()
161 _LIBCPP_HIDE_FROM_ABI void construct(pair<_T1, _T2>* __p, pair<_U1, _U2>&& __pr) { in construct() argument
164 std::forward_as_tuple(std::forward<_U1>(__pr.first)), in construct()
165 std::forward_as_tuple(std::forward<_U2>(__pr.second))); in construct()
/freebsd/contrib/llvm-project/libcxx/include/experimental/
H A Dmemory_resource