gauss.py 文件源码

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

项目:astrology 作者: mattsgithub 项目源码 文件源码
def get_gauss_pdf_value(x, mu, cov):
    p = len(mu)
    xs = x - mu
    covi = inv(cov)
    arg = -0.5 * (xs.T).dot(covi.dot(xs))

    # Normalization constant
    C = (((2.0 * np.pi)**p)*det(cov))**(-0.5)

    prob = C * np.exp(arg)
    return prob
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号