Skip to content
Snippets Groups Projects
Commit 2cc48349 authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

Flake8 fixes

parent 07598631
No related branches found
No related tags found
1 merge request!110An attempt to add a multivariate Gaussian prior
......@@ -68,9 +68,9 @@ aidx = [0, 3]
for j in range(2): # loop over parameters
gp = np.zeros(len(x))
for i in range(nmodes): # loop over modes
gp += weights[i]*stats.norm.pdf(x, loc=mus[i][j], scale=mvg.sigmas[i][j])
gp = gp/np.trapz(gp, x) # renormalise
gp += weights[i] * stats.norm.pdf(x, loc=mus[i][j], scale=mvg.sigmas[i][j])
gp = gp / np.trapz(gp, x) # renormalise
axs[aidx[j]].plot(x, gp, 'k--', lw=2)
# plot the 2d distribution
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment