23
23
#include < boost/core/cmath.hpp>
24
24
#include < boost/random/detail/operators.hpp>
25
25
#include < boost/random/detail/vector_io.hpp>
26
+ #include < boost/random/detail/size.hpp>
26
27
#include < boost/random/discrete_distribution.hpp>
27
28
#include < boost/random/exponential_distribution.hpp>
28
- #include < boost/range/begin.hpp>
29
- #include < boost/range/end.hpp>
30
- #include < boost/range/size.hpp>
31
29
#include < boost/type_traits/has_pre_increment.hpp>
32
30
#include < cmath>
33
31
#include < cstddef>
@@ -294,8 +292,8 @@ class hyperexponential_distribution
294
292
param_type (ProbRangeT const & prob_range,
295
293
RateRangeT const & rate_range,
296
294
typename boost::disable_if_c<boost::has_pre_increment<ProbRangeT>::value || boost::has_pre_increment<RateRangeT>::value>::type* = 0 )
297
- : probs_(boost ::begin(prob_range), boost ::end(prob_range)),
298
- rates_(boost ::begin(rate_range), boost ::end(rate_range))
295
+ : probs_(std ::begin(prob_range), std ::end(prob_range)),
296
+ rates_(std ::begin(rate_range), std ::end(rate_range))
299
297
{
300
298
hyperexp_detail::normalize (probs_);
301
299
@@ -330,8 +328,8 @@ class hyperexponential_distribution
330
328
// We SFINAE this out of existance if the argument type is
331
329
// incrementable as in that case the type is probably an iterator.
332
330
public: template <typename RateIterT>
333
- param_type (RateIterT rate_first,
334
- RateIterT rate_last,
331
+ param_type (RateIterT rate_first,
332
+ RateIterT rate_last,
335
333
typename boost::enable_if_c<boost::has_pre_increment<RateIterT>::value>::type* = 0 )
336
334
: probs_(std::distance(rate_first, rate_last), 1), // will be normalized below
337
335
rates_(rate_first, rate_last)
@@ -355,8 +353,8 @@ class hyperexponential_distribution
355
353
*/
356
354
public: template <typename RateRangeT>
357
355
param_type (RateRangeT const & rate_range)
358
- : probs_(boost::size(rate_range), 1), // Will be normalized below
359
- rates_(boost ::begin(rate_range), boost ::end(rate_range))
356
+ : probs_(boost::random::detail:: size(rate_range), 1), // Will be normalized below
357
+ rates_(std ::begin(rate_range), std ::end(rate_range))
360
358
{
361
359
hyperexp_detail::normalize (probs_);
362
360
@@ -529,7 +527,7 @@ class hyperexponential_distribution
529
527
return lhs.probs_ == rhs.probs_
530
528
&& lhs.rates_ == rhs.rates_ ;
531
529
}
532
-
530
+
533
531
/* * Returns true if the two sets of parameters are the different. */
534
532
public: BOOST_RANDOM_DETAIL_INEQUALITY_OPERATOR(param_type)
535
533
@@ -608,7 +606,7 @@ class hyperexponential_distribution
608
606
RateRangeT const & rate_range,
609
607
typename boost::disable_if_c<boost::has_pre_increment<ProbRangeT>::value || boost::has_pre_increment<RateRangeT>::value>::type* = 0 )
610
608
: dd_(prob_range),
611
- rates_(boost ::begin(rate_range), boost ::end(rate_range))
609
+ rates_(std ::begin(rate_range), std ::end(rate_range))
612
610
{
613
611
BOOST_ASSERT ( hyperexp_detail::check_params (dd_.probabilities (), rates_) );
614
612
}
@@ -667,8 +665,8 @@ class hyperexponential_distribution
667
665
*/
668
666
public: template <typename RateRangeT>
669
667
hyperexponential_distribution (RateRangeT const & rate_range)
670
- : dd_(std::vector<RealT>(boost::size(rate_range), 1)),
671
- rates_(boost ::begin(rate_range), boost ::end(rate_range))
668
+ : dd_(std::vector<RealT>(boost::random::detail:: size(rate_range), 1)),
669
+ rates_(std ::begin(rate_range), std ::end(rate_range))
672
670
{
673
671
BOOST_ASSERT ( hyperexp_detail::check_params (dd_.probabilities (), rates_) );
674
672
}
@@ -854,7 +852,7 @@ class hyperexponential_distribution
854
852
return lhs.dd_ == rhs.dd_
855
853
&& lhs.rates_ == rhs.rates_ ;
856
854
}
857
-
855
+
858
856
/* *
859
857
* Returns true if the two instances of @c hyperexponential_distribution will
860
858
* return different sequences of values given equal generators.
0 commit comments