output.py 文件源码

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

项目:abcpy 作者: eth-cscs 项目源码 文件源码
def posterior_cov(self):
        """
        Computes posterior covariance from the samples drawn from posterior distribution

        Returns
        -------
        np.ndarray
            posterior covariance        
        """
        endp = len(self.parameters) - 1
        endw = len(self.weights) - 1

        params = self.parameters[endp]
        weights = self.weights[endw]

        return np.cov(np.transpose(params), aweights = weights.reshape(len(weights),))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号