本文整理汇总了Python中scipy.special.gammainccinv方法的典型用法代码示例。如果您正苦于以下问题:Python special.gammainccinv方法的具体用法?Python special.gammainccinv怎么用?Python special.gammainccinv使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类scipy.special
的用法示例。
在下文中一共展示了special.gammainccinv方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _ppf
# 需要导入模块: from scipy import special [as 别名]
# 或者: from scipy.special import gammainccinv [as 别名]
def _ppf(self, q, a):
fac = sc.gammainccinv(a, 1-abs(2*q-1))
return np.where(q > 0.5, fac, -fac)
示例2: _isf
# 需要导入模块: from scipy import special [as 别名]
# 或者: from scipy.special import gammainccinv [as 别名]
def _isf(self, q, a, c):
val1 = sc.gammaincinv(a, q)
val2 = sc.gammainccinv(a, q)
return np.where(c > 0, val2, val1)**(1.0/c)
示例3: test_gammainccinv
# 需要导入模块: from scipy import special [as 别名]
# 或者: from scipy.special import gammainccinv [as 别名]
def test_gammainccinv(self):
assert_equal(cephes.gammainccinv(5,1),0.0)
示例4: test_gammaincc_roundtrip
# 需要导入模块: from scipy import special [as 别名]
# 或者: from scipy.special import gammainccinv [as 别名]
def test_gammaincc_roundtrip():
a = np.logspace(-5, 10, 100)
x = np.logspace(-5, 10, 100)
y = sc.gammainccinv(a, sc.gammaincc(a, x))
assert_allclose(x, y, rtol=1e-14)
示例5: _ppf
# 需要导入模块: from scipy import special [as 别名]
# 或者: from scipy.special import gammainccinv [as 别名]
def _ppf(self, q, a):
fac = special.gammainccinv(a,1-abs(2*q-1))
return numpy.where(q>0.5, fac, -fac)