提交 fc13ed1d authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #1410 from ebuchman/chi2sf/master

added scipy.stats.chi2.sf op
...@@ -3260,6 +3260,11 @@ def gammaln(a): ...@@ -3260,6 +3260,11 @@ def gammaln(a):
def psi(a): def psi(a):
"""derivative of log gamma function""" """derivative of log gamma function"""
@_scal_elemwise
def chi2sf(x, k):
"""chi squared survival function"""
@_scal_elemwise_with_nfunc('real', 1, -1) @_scal_elemwise_with_nfunc('real', 1, -1)
def real(z): def real(z):
......
...@@ -229,6 +229,10 @@ def gammaln_inplace(a): ...@@ -229,6 +229,10 @@ def gammaln_inplace(a):
def psi_inplace(a): def psi_inplace(a):
"""derivative of log gamma function""" """derivative of log gamma function"""
@_scal_inplace
def chi2sf_inplace(x, k):
"""chi squared survival function"""
@_scal_inplace @_scal_inplace
def second_inplace(a): def second_inplace(a):
"""Fill `a` with `b`""" """Fill `a` with `b`"""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论