Python| Scipy stats.hypsecant.isf() 方法
借助stats.hypsecant.isf()
方法,我们可以通过 stats.hypsecant.isf( stats.hypsecant.isf()
方法得到逆生存函数的值,即inverse(1 – cdf) 。
Syntax : stats.hypsecant.isf(x, beta)
Return : Return the value of inverse survival function.
示例 #1:
在这个例子中我们可以看到,通过使用stats.hypsecant.isf()
方法,我们可以通过这个方法得到逆生存函数的值。
# import hypsecant
from scipy.stats import hypsecant
beta = 1
# Using stats.hypsecant.isf() method
gfg = hypsecant.isf(0.3, beta)
print(gfg)
输出 :
1.6742754776268165
示例 #2:
# import hypsecant
from scipy.stats import hypsecant
beta = 4
# Using stats.hypsecant.isf() method
gfg = hypsecant.isf(0.9, beta)
print(gfg)
输出 :
2.1572699652988865