当前位置: 首页>>代码示例>>PHP>>正文


PHP Statistics::inverseCumulativeProbability方法代码示例

本文整理汇总了PHP中Statistics::inverseCumulativeProbability方法的典型用法代码示例。如果您正苦于以下问题:PHP Statistics::inverseCumulativeProbability方法的具体用法?PHP Statistics::inverseCumulativeProbability怎么用?PHP Statistics::inverseCumulativeProbability使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Statistics的用法示例。


在下文中一共展示了Statistics::inverseCumulativeProbability方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: norminv

 public static function norminv($p)
 {
     return Statistics::inverseCumulativeProbability($p);
 }
开发者ID:hasimpson-usgs,项目名称:earthquake-rtgm-calculator,代码行数:4,代码来源:RTGM_Util.class.php

示例2: notify

 notify('Find Log Log Y', $afe4uhgm, RTGM_Util::findLogLogY($xs, $ys, $uhgm));
 notify('Log Normal Cumulative Prob', 0.012893887361471, RTGM_Util::logNormalCumProb(1.3, 1.6, 0.6));
 notify('Log Normal Cumulative Prob (0)', 0.0, RTGM_Util::logNormalCumProb(0.0, 1.6, 0.6));
 notify('Log Normal Density', 0.042613954514149, RTGM_Util::logNormalDensity(1.3, 1.6, 0.6));
 notify('Log Normal Density (0)', 0.0, RTGM_Util::logNormalDensity(0.0, 1.6, 0.6));
 $a3 = array(1, 2, 3);
 notify('Multiply', array(3, 8, 15), RTGM_Util::multiply($a3, array(3, 4, 5)));
 $a4 = array(10, 20, 30);
 notify('Scale', array(1, 2, 3), RTGM_Util::scale($a4, 0.1));
 notify('Trapz', $riskTmp, RTGM_Util::trapz($xs, $ys));
 // Statistics method tests
 notify('ErfInv', 0.47693627620447, Statistics::erfInv(0.5));
 notify('InverseCumulativeProbabilty', 0.67448975019608, Statistics::inverseCumulativeProbability(0.75));
 notify('InverseCumulativeProbabilty (3 args)', 2.0046938501176, Statistics::inverseCumulativeProbability(0.75, 1.6, 0.6));
 try {
     Statistics::inverseCumulativeProbability(2.5);
     notify('InverseCumulativeProbabilty out of range', "Exception thrown", "Ok");
 } catch (Exception $ex1) {
     notify('InverseCumulativeProbabilty out of range', $ex1, $ex1);
 }
 notify('InvGamma1pm1', 0.12837916709551, Statistics::invGamma1pm1(0.5));
 try {
     Statistics::invGamma1pm1(-2.5);
     notify('InvGamma1pm1 too small', "Exception thrown", "Ok");
 } catch (Exception $ex1) {
     notify('InvGamma1pm1 too small', $ex1, $ex1);
 }
 try {
     Statistics::invGamma1pm1(2.5);
     notify('InvGamma1pm1 too large', "Exception thrown", "Ok");
 } catch (Exception $ex1) {
开发者ID:hasimpson-usgs,项目名称:earthquake-rtgm-calculator,代码行数:31,代码来源:RTGM.test.php


注:本文中的Statistics::inverseCumulativeProbability方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。