chap09 likelihood fix

main
Thierry Herrmann 2019-09-01 12:55:16 -04:00
parent 15b9e4507e
commit 497ec6d2aa
1 changed files with 1 additions and 1 deletions

View File

@ -3070,7 +3070,7 @@
"ss = np.linspace(1, 2, 101)\n",
"XX, SS = np.meshgrid(xx, ss)\n",
"ZZ = 2 * norm.pdf(XX - 1.0, 0, SS) + norm.pdf(XX + 4.0, 0, SS)\n",
"ZZ = ZZ / ZZ.sum(axis=1) / (xx[1] - xx[0])"
"ZZ = ZZ / ZZ.sum(axis=1)[:,np.newaxis] / (xx[1] - xx[0])"
]
},
{