Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/math/distributions/rayleigh.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
177 RealType x = c.param; | 177 RealType x = c.param; |
178 if(false == detail::verify_rayleigh_x(function, x, &result, Policy())) | 178 if(false == detail::verify_rayleigh_x(function, x, &result, Policy())) |
179 { | 179 { |
180 return result; | 180 return result; |
181 } | 181 } |
182 result = exp(-x * x / ( 2 * sigma * sigma)); | 182 RealType ea = x * x / (2 * sigma * sigma); |
183 // Fix for VC11/12 x64 bug in exp(float): | |
184 if (ea >= tools::max_value<RealType>()) | |
185 return 0; | |
186 result = exp(-ea); | |
183 return result; | 187 return result; |
184 } // cdf complement | 188 } // cdf complement |
185 | 189 |
186 template <class RealType, class Policy> | 190 template <class RealType, class Policy> |
187 inline RealType quantile(const complemented2_type<rayleigh_distribution<RealType, Policy>, RealType>& c) | 191 inline RealType quantile(const complemented2_type<rayleigh_distribution<RealType, Policy>, RealType>& c) |