Doc #70924 [NEW]: Return value description is incorrect
| From: | hunter at ellinger dot org | Date: | Mon, 16 Nov 2015 17:30:22 +0000 |
| Subject: | Doc #70924 [NEW]: Return value description is incorrect | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-12866@lists.php.net to get a copy of this message | ||
From: hunter at ellinger dot org
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Return value description is incorrect
Description:
------------
---
From manual page: http://www.php.net/function.stats-cdf-beta
---
The return value described in the manual is that of a C routine that is
used inside the C code that implements the PHP-callable STATS function.
Within that wrapper code, the desired numerical value is returned by
reference, then picked up and made the return value of the PHP-callable
function. (In the case of a parameter-out-of-range error, FALSE is
returned.)
For all STATS cdf functions, the desired value is specified by a $which
parameter at the end of the parameter list. A direct-cdf value (the
cumulative probability $p corresponding to a position $x) is returned
when the function is called with $x as the first parameter and a $which
value of 1 as the last parameter. An inverse-cdf value (the position $x
corresponding to a cumulative probability $p) is returned when the
function is called with $p as the first parameter and a $which value of
2 as the last parameter. The second and third parameters of
stats_cdf_beta are the distribution-defining $alpha and $beta
parameters.
The other stats_cdf_* functions use the same pattern, except that more
or fewer distribution-defining parameters may be used depending on what
is appropriate for that function.
--
Edit bug report at https://bugs.php.net/bug.php?id=70924&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70924&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70924&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70924&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70924&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70924&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70924&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70924&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70924&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70924&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70924&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70924&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70924&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70924&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70924&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70924&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70924&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70924&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70924&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70924&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70924&r=mysqlcfg