Ticket #6151: laplace.patch
File laplace.patch, 571 bytes (added by , 11 years ago) |
---|
-
boost/math/distributions/laplace.hpp
213 213 } 214 214 215 215 // Cdf interval value 216 if (-x < location)217 result = exp( (-x -location)/scale )/2;216 if (-x < -location) 217 result = exp( (-x+location)/scale )/2; 218 218 else 219 result = 1 - exp( ( location+x)/scale )/2;219 result = 1 - exp( (-location+x)/scale )/2; 220 220 221 221 return result; 222 222 } // cdf complement