本文整理匯總了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)