utils.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:python-psignifit 作者: wichmann-lab 项目源码 文件源码
def my_t1cdf(x):
    '''    
    cumulative distribution function of a t-dist. with 1 degree of freedom
    function p=my_t1cdf(x)
    input
          x = point
          output
          p = cumulative probability

    see also: tcdf 
    '''
    xsq=x*x;
    p = betainc(1/2, 1/2,1 / (1 + xsq)) / 2
    p[x>0]=1-p[x>0]

    return p
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号