<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Statistics Functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="函数参考" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="ssh2_tunnel" HREF="function.ssh2-tunnel.html"><LINK REL="NEXT" TITLE="stats_absolute_deviation" HREF="function.stats-absolute-deviation.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ssh2-tunnel.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.stats-absolute-deviation.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.stats" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >CLIX. Statistics Functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN219684" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="stats.intro" >简介</A ></H1 ><P > This is the statistics extension. It contains few dozens of functions useful for statistical computations. It is a wrapper around 2 scientific libraries, namely DCDFLIB (Library of C routines for Cumulative Distributions Functions, Inverses, and Other parameters) by B. Brown & J. Lavato and RANDLIB by Barry Brown, James Lavato & Kathy Russell. Includes CD and PD functions. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="stats.installation" >安装</A ></H1 ><P > 本 <A HREF="http://pecl.php.net" TARGET="_top" >PECL</A > 扩展未绑定于 PHP 中。 </P ><P > 安装此 PECL 扩展库的信息可在手册中标题为 <A HREF="install.pecl.html" >PECL 扩展库安装</A >的一章中找到。 更多信息如新版本,下载,源文件,维护者信息以及更新日志等可以在这里找到: <A HREF="http://pecl.php.net/package/stats" TARGET="_top" >http://pecl.php.net/package/stats</A >. </P ><P > 可以从 <A HREF="http://www.php.net/downloads.php" TARGET="_top" >PHP 下载页面</A >或者 <A HREF="http://snaps.php.net/" TARGET="_top" >http://snaps.php.net/</A > 下载此 <ACRONYM CLASS="acronym" >PECL</ACRONYM > 扩展的 <ACRONYM CLASS="acronym" >DLL</ACRONYM > 文件。 </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="stats.requirements" >需求</A ></H1 ><P > No external libraries are needed. The extension comes bundled with the libraries used. </P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >目录</B ></DT ><DT ><A HREF="function.stats-absolute-deviation.html" >stats_absolute_deviation</A > -- Returns the absolute deviation of an array of values</DT ><DT ><A HREF="function.stats-cdf-beta.html" >stats_cdf_beta</A > -- CDF function for BETA Distribution. Calculates any one parameter of the beta distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-binomial.html" >stats_cdf_binomial</A > -- Calculates any one parameter of the binomial distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-cauchy.html" >stats_cdf_cauchy</A > -- Not documented</DT ><DT ><A HREF="function.stats-cdf-chisquare.html" >stats_cdf_chisquare</A > -- Calculates any one parameter of the chi-square distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-exponential.html" >stats_cdf_exponential</A > -- Not documented</DT ><DT ><A HREF="function.stats-cdf-f.html" >stats_cdf_f</A > -- Calculates any one parameter of the F distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-gamma.html" >stats_cdf_gamma</A > -- Calculates any one parameter of the gamma distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-laplace.html" >stats_cdf_laplace</A > -- Not documented</DT ><DT ><A HREF="function.stats-cdf-logistic.html" >stats_cdf_logistic</A > -- Not documented</DT ><DT ><A HREF="function.stats-cdf-negative-binomial.html" >stats_cdf_negative_binomial</A > -- Calculates any one parameter of the negative binomial distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-noncentral-chisquare.html" >stats_cdf_noncentral_chisquare</A > -- Calculates any one parameter of the non-central chi-square distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-noncentral-f.html" >stats_cdf_noncentral_f</A > -- Calculates any one parameter of the Non-central F distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-poisson.html" >stats_cdf_poisson</A > -- Calculates any one parameter of the Poisson distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-t.html" >stats_cdf_t</A > -- Calculates any one parameter of the T distribution given values for the others.</DT ><DT ><A HREF="function.stats-cdf-uniform.html" >stats_cdf_uniform</A > -- Not documented</DT ><DT ><A HREF="function.stats-cdf-weibull.html" >stats_cdf_weibull</A > -- Not documented</DT ><DT ><A HREF="function.stats-covariance.html" >stats_covariance</A > -- Computes the covariance of two data sets</DT ><DT ><A HREF="function.stats-den-uniform.html" >stats_den_uniform</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-beta.html" >stats_dens_beta</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-cauchy.html" >stats_dens_cauchy</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-chisquare.html" >stats_dens_chisquare</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-exponential.html" >stats_dens_exponential</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-f.html" >stats_dens_f</A > -- </DT ><DT ><A HREF="function.stats-dens-gamma.html" >stats_dens_gamma</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-laplace.html" >stats_dens_laplace</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-logistic.html" >stats_dens_logistic</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-negative-binomial.html" >stats_dens_negative_binomial</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-normal.html" >stats_dens_normal</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-pmf-binomial.html" >stats_dens_pmf_binomial</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-pmf-hypergeometric.html" >stats_dens_pmf_hypergeometric</A > -- </DT ><DT ><A HREF="function.stats-dens-pmf-poisson.html" >stats_dens_pmf_poisson</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-t.html" >stats_dens_t</A > -- Not documented</DT ><DT ><A HREF="function.stats-dens-weibull.html" >stats_dens_weibull</A > -- Not documented</DT ><DT ><A HREF="function.stats-harmonic-mean.html" >stats_harmonic_mean</A > -- Returns the harmonic mean of an array of values</DT ><DT ><A HREF="function.stats-kurtosis.html" >stats_kurtosis</A > -- Computes the kurtosis of the data in the array</DT ><DT ><A HREF="function.stats-rand-gen-beta.html" >stats_rand_gen_beta</A > -- Generates beta random deviate</DT ><DT ><A HREF="function.stats-rand-gen-chisquare.html" >stats_rand_gen_chisquare</A > -- Generates random deviate from the distribution of a chisquare with "df" degrees of freedom random variable.</DT ><DT ><A HREF="function.stats-rand-gen-exponential.html" >stats_rand_gen_exponential</A > -- Generates a single random deviate from an exponential distribution with mean "av"</DT ><DT ><A HREF="function.stats-rand-gen-f.html" >stats_rand_gen_f</A > -- Generates a random deviate from the F (variance ratio) distribution with "dfn" degrees of freedom in the numerator and "dfd" degrees of freedom in the denominator. Method : directly generates ratio of chisquare variates</DT ><DT ><A HREF="function.stats-rand-gen-funiform.html" >stats_rand_gen_funiform</A > -- Generates uniform float between low (exclusive) and high (exclusive)</DT ><DT ><A HREF="function.stats-rand-gen-gamma.html" >stats_rand_gen_gamma</A > -- Generates random deviates from a gamma distribution</DT ><DT ><A HREF="function.stats-rand-gen-ibinomial-negative.html" >stats_rand_gen_ibinomial_negative</A > -- Generates a single random deviate from a negative binomial distribution. Arguments : n - the number of trials in the negative binomial distribution from which a random deviate is to be generated (n > 0), p - the probability of an event (0 < p < 1)).</DT ><DT ><A HREF="function.stats-rand-gen-ibinomial.html" >stats_rand_gen_ibinomial</A > -- Generates a single random deviate from a binomial distribution whose number of trials is "n" (n >= 0) and whose probability of an event in each trial is "pp" ([0;1]). Method : algorithm BTPE</DT ><DT ><A HREF="function.stats-rand-gen-int.html" >stats_rand_gen_int</A > -- Generates random integer between 1 and 2147483562</DT ><DT ><A HREF="function.stats-rand-gen-ipoisson.html" >stats_rand_gen_ipoisson</A > -- Generates a single random deviate from a Poisson distribution with mean "mu" (mu >= 0.0).</DT ><DT ><A HREF="function.stats-rand-gen-iuniform.html" >stats_rand_gen_iuniform</A > -- Generates integer uniformly distributed between LOW (inclusive) and HIGH (inclusive)</DT ><DT ><A HREF="function.stats-rand-gen-noncenral-chisquare.html" >stats_rand_gen_noncenral_chisquare</A > -- Generates random deviate from the distribution of a noncentral chisquare with "df" degrees of freedom and noncentrality parameter "xnonc". d must be >= 1.0, xnonc must >= 0.0</DT ><DT ><A HREF="function.stats-rand-gen-noncentral-f.html" >stats_rand_gen_noncentral_f</A > -- Generates a random deviate from the noncentral F (variance ratio) distribution with "dfn" degrees of freedom in the numerator, and "dfd" degrees of freedom in the denominator, and noncentrality parameter "xnonc". Method : directly generates ratio of noncentral numerator chisquare variate to central denominator chisquare variate.</DT ><DT ><A HREF="function.stats-rand-gen-noncentral-t.html" >stats_rand_gen_noncentral_t</A > -- Generates a single random deviate from a noncentral T distribution</DT ><DT ><A HREF="function.stats-rand-gen-normal.html" >stats_rand_gen_normal</A > -- Generates a single random deviate from a normal distribution with mean, av, and standard deviation, sd (sd >= 0). Method : Renames SNORM from TOMS as slightly modified by BWB to use RANF instead of SUNIF.</DT ><DT ><A HREF="function.stats-rand-gen-t.html" >stats_rand_gen_t</A > -- Generates a single random deviate from a T distribution</DT ><DT ><A HREF="function.stats-rand-get-seeds.html" >stats_rand_get_seeds</A > -- Not documented</DT ><DT ><A HREF="function.stats-rand-phrase-to-seeds.html" >stats_rand_phrase_to_seeds</A > -- generate two seeds for the RGN random number generator</DT ><DT ><A HREF="function.stats-rand-ranf.html" >stats_rand_ranf</A > -- Returns a random floating point number from a uniform distribution over 0 - 1 (endpoints of this interval are not returned) using the current generator</DT ><DT ><A HREF="function.stats-rand-setall.html" >stats_rand_setall</A > -- Not documented</DT ><DT ><A HREF="function.stats-skew.html" >stats_skew</A > -- Computes the skewness of the data in the array</DT ><DT ><A HREF="function.stats-standard-deviation.html" >stats_standard_deviation</A > -- Returns the standard deviation</DT ><DT ><A HREF="function.stats-stat-binomial-coef.html" >stats_stat_binomial_coef</A > -- Not documented</DT ><DT ><A HREF="function.stats-stat-correlation.html" >stats_stat_correlation</A > -- Not documented</DT ><DT ><A HREF="function.stats-stat-gennch.html" >stats_stat_gennch</A > -- Not documented</DT ><DT ><A HREF="function.stats-stat-independent-t.html" >stats_stat_independent_t</A > -- Not documented</DT ><DT ><A HREF="function.stats-stat-innerproduct.html" >stats_stat_innerproduct</A > -- </DT ><DT ><A HREF="function.stats-stat-noncentral-t.html" >stats_stat_noncentral_t</A > -- Calculates any one parameter of the noncentral t distribution give values for the others.</DT ><DT ><A HREF="function.stats-stat-paired-t.html" >stats_stat_paired_t</A > -- Not documented</DT ><DT ><A HREF="function.stats-stat-percentile.html" >stats_stat_percentile</A > -- Not documented</DT ><DT ><A HREF="function.stats-stat-powersum.html" >stats_stat_powersum</A > -- Not documented</DT ><DT ><A HREF="function.stats-variance.html" >stats_variance</A > -- Returns the population variance</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.ssh2-tunnel.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.stats-absolute-deviation.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ssh2_tunnel</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >stats_absolute_deviation</TD ></TR ></TABLE ></DIV ></BODY ></HTML >