Rechercher une fonction PHP

stats_cdf_beta

(PECL stats >= 1.0.0)

stats_cdf_betaFonction CDF pour Distribution BETA. Calcule n'importe quel paramètre de distribution beta des valeurs données pour les autres

Description

stats_cdf_beta ( float $par1 , float $par2 , float $par3 , int $which ) : float


Method

Cumulative distribution function (P) is calculated directly by
code associated with the following reference.

DiDinato, A. R. and Morris, A. H. Algorithm 708: Significant
Digit Computation of the Incomplete Beta Function Ratios. ACM
Trans. Math. Softw. 18 (1993), 360-373.

Computation of other parameters involve a seach for a value that
produces the desired value of P. The search relies on the
monotinicity of P with the other parameter.

Note

The beta density is proportional to
t^(A-1) * (1-t)^(B-1)

Arguments


P -- The integral from 0 to X of the chi-square
distribution.
Input range: [0, 1].

Q -- 1-P.
Input range: [0, 1].
P + Q = 1.0.

X -- Upper limit of integration of beta density.
Input range: [0,1].
Search range: [0,1]

Y -- 1-X.
Input range: [0,1].
Search range: [0,1]
X + Y = 1.0.

A -- The first parameter of the beta density.
Input range: (0, +infinity).
Search range: [1D-100,1D100]

B -- The second parameter of the beta density.
Input range: (0, +infinity).
Search range: [1D-100,1D100]

STATUS -- 0 if calculation completed correctly
-I if input parameter number I is out of range
1 if answer appears to be lower than lowest
search bound
2 if answer appears to be higher than greatest
search bound
3 if P + Q .ne. 1
4 if X + Y .ne. 1

BOUND -- Undefined if STATUS is 0

Bound exceeded by parameter number I if STATUS
is negative.

Lower search bound if STATUS is 1.

Upper search bound if STATUS is 2.

Retour à la première page de Manuel PHP  Table des matières Haut

Liste de paramètres

par1

par2

par3

which


Integer indicating which of the next four argument
values is to be calculated from the others.
Legal range: 1..4
which = 1 : Calculate P and Q from X,Y,A and B
which = 2 : Calculate X and Y from P,Q,A and B
which = 3 : Calculate A from P,Q,X,Y and B
which = 4 : Calculate B from P,Q,X,Y and A

Retour à la première page de Manuel PHP  Table des matières Haut

Valeurs de retour


STATUS -- 0 if calculation completed correctly
-I if input parameter number I is out of range
1 if answer appears to be lower than lowest
search bound
2 if answer appears to be higher than greatest
search bound
3 if P + Q .ne. 1
4 if X + Y .ne. 1

Rechercher une fonction PHP

Document créé le 30/01/2003, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/php-rf-function.stats-cdf-beta.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : http://php.net

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut