PATH:
opt
/
alt
/
tests
/
alt-php84-pecl-stats_2.1.0-2.fac78cf.el8
/
tests
--TEST-- stats_cdf_beta() --FILE-- <?php // which = 1 : calculate P from (X, A, B) var_dump(round(stats_cdf_beta(0.5, 2, 4, 1), 6)); // which = 2 : calculate X from (P, A, B) var_dump(round(stats_cdf_beta(0.8125, 2, 4, 2), 6)); // which = 3 : calculate A from (P, X, B) var_dump(round(stats_cdf_beta(0.8125, 0.5, 4, 3), 6)); // which = 4 : calculate B from (P, X, A) var_dump(round(stats_cdf_beta(0.8125, 0.5, 2, 4), 6)); // error cases var_dump(stats_cdf_beta(0.5, 2, 4, 0)); // which < 1 var_dump(stats_cdf_beta(0.5, 2, 4, 5)); // which > 4 var_dump(stats_cdf_beta(-0.1, 2, 4, 2)); // P < 0 var_dump(stats_cdf_beta(1.1, 2, 4, 2)); // P > 1 var_dump(stats_cdf_beta(-0.1, 2, 4, 1)); // X < 0 var_dump(stats_cdf_beta(1.1, 2, 4, 1)); // X > 1 var_dump(stats_cdf_beta(0.5, -0.1, 4, 1)); // A < 0 var_dump(stats_cdf_beta(0.5, 0, 4, 1)); // A == 0 var_dump(stats_cdf_beta(0.5, 2, -0.1, 1)); // B < 0 var_dump(stats_cdf_beta(0.5, 2, 0, 1)); // B == 0 ?> --EXPECTF-- float(0.8125) float(0.5) float(2) float(4) Warning: stats_cdf_beta(): Fourth parameter should be in the 1..4 range in %s on line %d bool(false) Warning: stats_cdf_beta(): Fourth parameter should be in the 1..4 range in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false) Warning: stats_cdf_beta(): Computation Error in %s on line %d bool(false)
[-] stats_cdf_cauchy.phpt
[edit]
[-] stats_rand_gen_gamma.phpt
[edit]
[-] stats_rand_gen_noncentral_t.phpt
[edit]
[-] bug61318-6.phpt
[edit]
[-] stats_rand_gen_t.phpt
[edit]
[-] stats_dens_weibull.phpt
[edit]
[-] stats_cdf_t.phpt
[edit]
[-] stats_rand_ibinomial_negative.phpt
[edit]
[-] stats_dens_pmf_poisson.phpt
[edit]
[-] stats_cdf_gamma.phpt
[edit]
[-] stats_dens_pmf_negative_binomial.phpt
[edit]
[-] stats_cdf_weibull.phpt
[edit]
[-] stats_absolute_deviation.phpt
[edit]
[-] stats_stat_correlation.phpt
[edit]
[-] stats_skew.phpt
[edit]
[-] stats_dens_normal.phpt
[edit]
[-] stats_rand_gen_ipoisson.phpt
[edit]
[-] stats_rand_ibinomial.phpt
[edit]
[-] stats_cdf_laplace.phpt
[edit]
[-] stats_rand_gen_noncentral_chisquare.phpt
[edit]
[-] bug61318-2.phpt
[edit]
[-] bug61318-11.phpt
[edit]
[-] bug61318-4.phpt
[edit]
[-] stats_cdf_logistic.phpt
[edit]
[-] bug61318-13.phpt
[edit]
[-] stats_rand_gen_chisquare.phpt
[edit]
[-] stats_kurtosis.phpt
[edit]
[-] stats_cdf_normal.phpt
[edit]
[-] stats_dens_uniform.phpt
[edit]
[-] stats_cdf_uniform.phpt
[edit]
[-] stats_cdf_poisson.phpt
[edit]
[-] stats_dens_exponential.phpt
[edit]
[-] stats_stat_paired_t.phpt
[edit]
[-] stats_stat_binomial_coef.phpt
[edit]
[-] stats_dens_logistic.phpt
[edit]
[-] stats_stat_innerproduct.phpt
[edit]
[-] stats_cdf_beta.phpt
[edit]
[-] stats_cdf_exponential.phpt
[edit]
[-] stats_rand_ranf.phpt
[edit]
[-] stats_stat_independent_t.phpt
[edit]
[-] stats_rand_getsd.phpt
[edit]
[-] stats_cdf_f.phpt
[edit]
[-] bug61318-12.phpt
[edit]
[-] stats_variance.phpt
[edit]
[-] stats_cdf_noncentral_t.phpt
[edit]
[-] bug61318-9.phpt
[edit]
[-] bug68295.phpt
[edit]
[-] stats_rand_gen_beta.phpt
[edit]
[-] stats_standard_deviation.phpt
[edit]
[-] stats_dens_chisquare.phpt
[edit]
[-] stats_dens_pmf_binomial.phpt
[edit]
[-] bug61318-8.phpt
[edit]
[-] stats_dens_pmf_hypergeometric.phpt
[edit]
[-] stats_stat_percentile.phpt
[edit]
[+]
..
[-] stats_cdf_negative_binomial.phpt
[edit]
[-] stats_rand_ignlgi.phpt
[edit]
[-] stats_rand_gen_funiform.phpt
[edit]
[-] bug57830.phpt
[edit]
[-] stats_dens_gamma.phpt
[edit]
[-] stats_cdf_noncentral_f.phpt
[edit]
[-] stats_dens_beta.phpt
[edit]
[-] stats_cdf_noncentral_chisquare.phpt
[edit]
[-] stats_rand_gen_normal.phpt
[edit]
[-] bug61318.phpt
[edit]
[-] stats_dens_f.phpt
[edit]
[-] stats_rand_gen_exponential.phpt
[edit]
[-] stats_dens_cauchy.phpt
[edit]
[-] stats_rand_phrase_to_seeds.phpt
[edit]
[-] bug59292.phpt
[edit]
[-] stats_rand_gen_iuniform.phpt
[edit]
[-] bug61318-3.phpt
[edit]
[-] bug57831.phpt
[edit]
[-] bug61318-7.phpt
[edit]
[-] bug58394.phpt
[edit]
[-] bug61318-5.phpt
[edit]
[-] bug59070.phpt
[edit]
[-] stats_dens_t.phpt
[edit]
[-] stats_dens_laplace.phpt
[edit]
[-] stats_stat_powersum.phpt
[edit]
[-] bug61318-10.phpt
[edit]
[-] stats_harmonic_mean.phpt
[edit]
[-] stats_cdf_binomial.phpt
[edit]
[-] stats_rand_gen_f.phpt
[edit]
[-] stats_covariance.phpt
[edit]
[-] stats_cdf_chisquare.phpt
[edit]
[-] stats_stat_factorial.phpt
[edit]
[-] stats_rand_gen_noncentral_f.phpt
[edit]