我想知道是否有一个与PHP相关的统计检验库,例如:
- t检验
- Anova检验
- Kolmogorov Smirnov 等等......
我找到了一个PECL扩展:http://php.net/manual/de/book.stats.php,它提供了一些基本参数,但还没有发现任何测试。
我想知道是否有一个与PHP相关的统计检验库,例如:
我找到了一个PECL扩展:http://php.net/manual/de/book.stats.php,它提供了一些基本参数,但还没有发现任何测试。
$descriptorspec = array(
0 => array("pipe", "r"), //a pipe where you will read
1 => array("pipe", "w"), //std out : a pipe where you will write
2 => array("file", "/tmp/error-output.txt", "a") // stderr : a log file, not mandatory here
);
$pipes = array();
$process = proc_open('R yourfile.r',$decriptorspec,$pipes);
fwrite($pipes[0],$yourStatsToBeCompute);
$result = stream_get_contents($pipes[1]);
fclose($pipes[0]);
fclose($pipes[1]);
proc_close($process);