clustering.py 文件源码

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

项目:PyFusionGUI 作者: SyntaxVoid 项目源码 文件源码
def convert_kappa_std(kappa,deg=True):
    '''This converts kappa from the von Mises distribution into a
    standard deviation that can be used to generate a similar normal
    distribution

    SH: 14June2013
    '''
    R_bar = spec.iv(1,kappa)/spec.iv(0,kappa)
    if deg==True:
        return np.sqrt(-2*np.log(R_bar))*180./np.pi
    else:
        return np.sqrt(-2*np.log(R_bar))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号