<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>cdfchn</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>Dec 1997</DATE>
  <SHORT_DESCRIPTION name="cdfchn"> cumulative distribution function  non-central chi-square distribution</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>[P,Q]=cdfchn(&quot;PQ&quot;,X,Df,Pnonc)  </CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM>[X]=cdfchn(&quot;X&quot;,Df,Pnonc,P,Q);  </CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM>[Df]=cdfchn(&quot;Df&quot;,Pnonc,P,Q,X)  </CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM>[Pnonc]=cdfchn(&quot;Pnonc&quot;,P,Q,X,Df)  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>P,Q,X,Df,Pnonc</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: five real vectors of the same size.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>P,Q (Q=1-P)  </PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>:  The integral from 0 to X of the non-central chi-square distribution. Input range: [0, 1-1E-16).</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>X</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: Upper limit of integration of the non-central chi-square distribution. Input range: [0, +infinity). Search range: [0,1E300]</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>Df</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: Degrees of freedom of the non-central chi-square distribution. Input range: (0, +infinity). Search range: [ 1E-300, 1E300]</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>Pnonc</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>:  Non-centrality parameter of the non-central chi-square distribution. Input range: [0, +infinity). Search range: [0,1E4]</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P>
    Calculates any one parameter of the non-central chi-square
    distribution given values for the others.</P>
    <P>
    Formula  26.4.25   of   Abramowitz   and   Stegun,  Handbook  of
    Mathematical  Functions (1966) is used to compute the cumulative
    distribution function.</P>
    <P>
    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.</P>
    <P>
    The computation time  required for this  routine is proportional
    to the noncentrality  parameter  (PNONC).  Very large  values of
    this parameter can consume immense  computer resources.  This is
    why the search range is bounded by 10,000.</P>
    <P>
    From DCDFLIB: Library of Fortran Routines for Cumulative Distribution
    Functions, Inverses, and Other Parameters (February, 1994)
    Barry W. Brown, James Lovato and Kathy Russell. The University of
    Texas.</P>
  </DESCRIPTION>
</MAN>
