stats_cdf_gamma
(PECL stats:1.0.0-1.0.2)
stats_cdf_gamma — Calculates any one parameter of the gamma distribution given values for the others.
Описание
float stats_cdf_gamma
( float $par1
, float $par2
, float $par3
, int $which
)
Внимание
К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.
Список параметров
- par1
-
- par2
-
- par3
-
- which
-
Возвращаемые значения
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Математические расширения
- Статистика
- stats_absolute_deviation
- stats_cdf_beta
- stats_cdf_binomial
- stats_cdf_cauchy
- stats_cdf_chisquare
- stats_cdf_exponential
- stats_cdf_f
- stats_cdf_gamma
- stats_cdf_laplace
- stats_cdf_logistic
- stats_cdf_negative_binomial
- stats_cdf_noncentral_chisquare
- stats_cdf_noncentral_f
- stats_cdf_poisson
- stats_cdf_t
- stats_cdf_uniform
- stats_cdf_weibull
- stats_covariance
- stats_den_uniform
- stats_dens_beta
- stats_dens_cauchy
- stats_dens_chisquare
- stats_dens_exponential
- stats_dens_f
- stats_dens_gamma
- stats_dens_laplace
- stats_dens_logistic
- stats_dens_negative_binomial
- stats_dens_normal
- stats_dens_pmf_binomial
- stats_dens_pmf_hypergeometric
- stats_dens_pmf_poisson
- stats_dens_t
- stats_dens_weibull
- stats_harmonic_mean
- stats_kurtosis
- stats_rand_gen_beta
- stats_rand_gen_chisquare
- stats_rand_gen_exponential
- stats_rand_gen_f
- stats_rand_gen_funiform
- stats_rand_gen_gamma
- stats_rand_gen_ibinomial_negative
- stats_rand_gen_ibinomial
- stats_rand_gen_int
- stats_rand_gen_ipoisson
- stats_rand_gen_iuniform
- stats_rand_gen_noncenral_chisquare
- stats_rand_gen_noncentral_f
- stats_rand_gen_noncentral_t
- stats_rand_gen_normal
- stats_rand_gen_t
- stats_rand_get_seeds
- stats_rand_phrase_to_seeds
- stats_rand_ranf
- stats_rand_setall
- stats_skew
- stats_standard_deviation
- stats_stat_binomial_coef
- stats_stat_correlation
- stats_stat_gennch
- stats_stat_independent_t
- stats_stat_innerproduct
- stats_stat_noncentral_t
- stats_stat_paired_t
- stats_stat_percentile
- stats_stat_powersum
- stats_variance
Коментарии
Hello, I needed badly this function, but there was no documentation available about it, so I dug deep into the code and found out something very interesting:
stats_cdf_gamma(float par1, float par2, float par3, int which)
The value of parameter “which” determines
the meaning of the remaining 3 other parameters (par1,par2,par3)
and the outcome of the calculation, as illustrated below:
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,SHAPE and SCALE
which = 2 : Calculate X from P,Q,SHAPE and SCALE
which = 3 : Calculate SHAPE from P,Q,X and SCALE
which = 4 : Calculate SCALE from P,Q,X and SHAPE
Where the meaning of P,Q,SCALE,SHAPE is given below:
P <--> The integral from 0 to X of the gamma density.
Input range: [0,1].
Q <--> 1-P.
Input range: (0, 1].
P + Q = 1.0.
X <--> The upper limit of integration of the gamma density.
Input range: [0, +infinity).
Search range: [0,1E100]
SHAPE <--> The shape parameter of the gamma density.
Input range: (0, +infinity).
Search range: [1E-100,1E100]
SCALE <--> The scale parameter of the gamma density.
Input range: (0, +infinity).
Search range: (1E-100,1E100]
In summary:
| which |par1 |par2 |par3 |the function returns: |
| 1 |X |SHAPE |SCALE | P |
| 2 |P |SHAPE |SCALE | X |
| 3 |P |X |SCALE | SHAPE |
| 4 |P |X |SHAPE | SCALE |
I tried it for which=1 and it works fine.