Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 5951

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>CDF function for BETA Distribution. Calculates any one parameter of the beta distribution given values for the others.</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.stats-absolute-deviation.html">stats_absolute_deviation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.stats-cdf-binomial.html">stats_cdf_binomial</a></div>
 <div class="up"><a href="ref.stats.html">Statistic Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.stats-cdf-beta" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stats_cdf_beta</h1>
  <p class="verinfo">(PECL stats &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_cdf_beta</span> &mdash; <span class="dc-title">CDF function for BETA Distribution. Calculates any one parameter of the beta distribution given values for the others.</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.stats-cdf-beta-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">float</span> <span class="methodname"><strong>stats_cdf_beta</strong></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$par1</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$par2</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$par3</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$which</code></span>
   )</div>

  <p class="para rdfs-comment">

                              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 search for a value that
     produces  the desired  value  of P.   The search relies  on  the
     monotonicity 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.

  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.stats-cdf-beta-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">par1</code></em></span>
     <dd>

      <p class="para">
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">par2</code></em></span>
     <dd>

      <p class="para">
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">par3</code></em></span>
     <dd>

      <p class="para">
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">which</code></em></span>
     <dd>

      <p class="para">
      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

      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stats-cdf-beta-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
     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
  </p>
 </div>


 


 


 


 


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.stats-absolute-deviation.html">stats_absolute_deviation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.stats-cdf-binomial.html">stats_cdf_binomial</a></div>
 <div class="up"><a href="ref.stats.html">Statistic Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>