📜  Python| Scipy stats.hypsecant.sf() 方法

📅  最后修改于: 2022-05-13 01:55:38.747000             🧑  作者: Mango

Python| Scipy stats.hypsecant.sf() 方法

借助stats.hypsecant.sf()方法,我们可以使用stats.hypsecant.sf()方法得到生存函数的值为1 - cdf

示例 #1:
在这个例子中我们可以看到,通过使用stats.hypsecant.sf()方法,我们可以通过这个方法得到生存函数的值。

# import hypsecant
from scipy.stats import hypsecant
beta = 1
  
# Using stats.hypsecant.sf() method
gfg = hypsecant.sf(0.3, beta)
  
print(gfg)

输出 :

示例 #2:

# import hypsecant
from scipy.stats import hypsecant
beta = 4
  
# Using stats.hypsecant.sf() method
gfg = hypsecant.sf(0.9, beta)
  
print(gfg)

输出 :