Discrete_bayes_sim() wasn't displaying the graphs because plt.show()
was missing from the end of the function.
This commit is contained in:
parent
6914c3be77
commit
d31721aa0f
@ -13708,6 +13708,7 @@
|
||||
" plt.axvline(i % 10 + 0.4, lw=5)\n",
|
||||
" fig.canvas.draw()\n",
|
||||
" time.sleep(sleep)\n",
|
||||
" plt.show()\n",
|
||||
" \n",
|
||||
"# change these numbers to alter the simulation\n",
|
||||
"kernel = (.1, .8, .1)\n",
|
||||
@ -17889,9 +17890,9 @@
|
||||
"time 1: pos 8, sensed 9, at position 8\n",
|
||||
" predicted position is 4 with confidence 59.4728%:\n",
|
||||
"time 2: pos 3, sensed 3, at position 3\n",
|
||||
" predicted position is 8 with confidence 25.7722%:\n",
|
||||
" predicted position is 3 with confidence 53.5807%:\n",
|
||||
"time 3: pos 7, sensed 8, at position 7\n",
|
||||
" predicted position is 7 with confidence 28.8387%:\n",
|
||||
" predicted position is 8 with confidence 37.5836%:\n",
|
||||
"\n",
|
||||
"final position is 7\n",
|
||||
"predicted position is 8 with confidence 37.5836%:\n"
|
||||
|
Loading…
Reference in New Issue
Block a user