uawdijnntqw1x1x1
IP : 18.118.7.18
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
.
/
.
/
opt
/
alt
/
tests
/
alt-php82-pecl-stats_2.1.0-1.fac78cf.el8
/
tests
/
stats_cdf_normal.phpt
/
/
--TEST-- stats_cdf_normal() --FILE-- <?php // which = 1 : calculate P from (X, MEAN, SD) var_dump(round(stats_cdf_normal(1, 0, 1, 1), 6)); // which = 2 : calculate X from (P, MEAN, SD) var_dump(round(stats_cdf_normal(0.841344746, 0, 1, 2), 6)); // which = 3 : calculate MEAN from (P, X, SD) var_dump(round(stats_cdf_normal(0.841344746, 1, 1, 3), 6)); // which = 4 : calculate SD from (P, X, MEAN) var_dump(round(stats_cdf_normal(0.841344746, 1, 0, 4), 6)); // error cases var_dump(stats_cdf_normal(1, 0, 1, 0)); // which < 1 var_dump(stats_cdf_normal(1, 0, 1, 5)); // which > 4 var_dump(stats_cdf_normal(-0.1, 0, 1, 2)); // P < 0 var_dump(stats_cdf_normal(0, 0, 1, 2)); // P == 0 var_dump(stats_cdf_normal(1.1, 0, 1, 2)); // P > 1 var_dump(stats_cdf_normal(1, 0, -0.1, 1)); // SD < 0 var_dump(stats_cdf_normal(1, 0, 0, 1)); // SD == 0 ?> --EXPECTF-- float(0.841345) float(1) float(0) float(1) Warning: stats_cdf_normal(): Fourth parameter should be in the 1..4 range in %s on line %d bool(false) Warning: stats_cdf_normal(): Fourth parameter should be in the 1..4 range in %s on line %d bool(false) Warning: stats_cdf_normal(): Computation error in %s on line %d bool(false) Warning: stats_cdf_normal(): Computation error in %s on line %d bool(false) Warning: stats_cdf_normal(): Computation error in %s on line %d bool(false) Warning: stats_cdf_normal(): Computation error in %s on line %d bool(false) Warning: stats_cdf_normal(): Computation error in %s on line %d bool(false)
/home/../././opt/alt/tests/alt-php82-pecl-stats_2.1.0-1.fac78cf.el8/tests/stats_cdf_normal.phpt