comparison DEPENDENCIES/generic/include/boost/math/distributions/pareto.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
234 { 234 {
235 return scale; // x must be scale (or less). 235 return scale; // x must be scale (or less).
236 } 236 }
237 if (p == 1) 237 if (p == 1)
238 { 238 {
239 return tools::max_value<RealType>(); // x = + infinity. 239 return policies::raise_overflow_error<RealType>(function, 0, Policy()); // x = + infinity.
240 } 240 }
241 result = scale / 241 result = scale /
242 (pow((1 - p), 1 / shape)); 242 (pow((1 - p), 1 / shape));
243 // K. Krishnamoorthy, ISBN 1-58488-635-8 eq 23.1.3 243 // K. Krishnamoorthy, ISBN 1-58488-635-8 eq 23.1.3
244 return result; 244 return result;
284 { 284 {
285 return scale; // x must be scale (or less). 285 return scale; // x must be scale (or less).
286 } 286 }
287 if (q == 0) 287 if (q == 0)
288 { 288 {
289 return tools::max_value<RealType>(); // x = + infinity. 289 return policies::raise_overflow_error<RealType>(function, 0, Policy()); // x = + infinity.
290 } 290 }
291 result = scale / (pow(q, 1 / shape)); 291 result = scale / (pow(q, 1 / shape));
292 // K. Krishnamoorthy, ISBN 1-58488-635-8 eq 23.1.3 292 // K. Krishnamoorthy, ISBN 1-58488-635-8 eq 23.1.3
293 return result; 293 return result;
294 } // quantile complement 294 } // quantile complement