Coverage for cosmoHammer/modules/MultivarianteGaussianModule.py : 54%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
""" Chain for computing the likelihood of a multivariante gaussian distribution """ self.icov = icov self.mu = mu
x = ctx.getParams() diff = x-self.mu return -np.dot(diff,np.dot(self.icov,diff))/2.0
getLogger().info("Multivariante Gaussian setup")
|