Doc #70924 [Opn->Sus]: Return value description is incorrect
[email protected] Tue, 16 Nov 2021 13:19:49 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=70924&edit=1 ID: 70924 Updated by: [email protected] Reported by: hunter at ellinger dot org Summary: Return value description is incorrect -Status: Open +Status: Suspended Type: Documentation Problem Package: stats PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Sorry to say, but the stats extension is unmainted, and its documentation has been removed from the PHP manual. Therefore I suspend this ticket, until a new maintainer steps up. Previous Comments: ------------------------------------------------------------------------ [2015-11-16 17:30:20] hunter at ellinger dot org 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 this bug report at https://bugs.php.net/bug.php?id=70924&edit=1