mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
DOC: fix Cauchy CDF formula
This commit is contained in:
@@ -116,7 +116,7 @@ So recall that for `x < 0`:
|
||||
|
||||
Substituting into the above we get:
|
||||
|
||||
[expression p = -atan(1/x) ; x < 0]
|
||||
[expression p = -atan(1/x) / [pi] ; x < 0]
|
||||
|
||||
So the procedure is to calculate the cdf for -fabs(x)
|
||||
using the above formula. Note that to factor in the location and scale
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
Substituting into the above we get:
|
||||
</p>
|
||||
<div class="blockquote"><blockquote class="blockquote"><p>
|
||||
<span class="serif_italic">p = -atan(1/x) ; x < 0</span>
|
||||
<span class="serif_italic">p = -atan(1/x)/π ; x < 0</span>
|
||||
</p></blockquote></div>
|
||||
<p>
|
||||
So the procedure is to calculate the cdf for -fabs(x) using the
|
||||
|
||||
@@ -57,7 +57,7 @@ BOOST_MATH_GPU_ENABLED RealType cdf_imp(const cauchy_distribution<RealType, Poli
|
||||
//
|
||||
// Substituting into the above we get:
|
||||
//
|
||||
// CDF = -atan(1/x) ; x < 0
|
||||
// CDF = -atan(1/x)/pi ; x < 0
|
||||
//
|
||||
// So the procedure is to calculate the cdf for -fabs(x)
|
||||
// using the above formula, and then subtract from 1 when required
|
||||
|
||||
Reference in New Issue
Block a user