Commit Graph

25 Commits

Author SHA1 Message Date
Roger Labbe
6f1fd2f16f Updated to use absolute imports
I used to add .\code to the path, which was an absurd hack.
Now all code is imported with import code.foo.
2016-03-06 12:02:13 -08:00
Roger Labbe
fb21cf6313 Making book work in Python 2.7 2016-03-06 08:18:27 -08:00
Roger Labbe
f62fb8bbe8 Reran with tight_layout for interactive plots
This is just so everything looks nice in nbviewer. I added
plt.tight_layout() to the interactive_plot context manager,
which makes plots fill the output cell better.
2016-02-28 09:46:06 -08:00
Roger Labbe
2594d8905c Added animated filtering
Rewrote some of the chapter examples to use animated plots. Makes
it so much easier to see how the filter is performing.
2016-02-28 08:35:51 -08:00
Roger Labbe
ef67326af6 Change plots to interactive plots 2016-02-27 20:52:36 -08:00
Roger Labbe
590af94807 Switching to interactive plots 2016-02-27 18:55:34 -08:00
Roger Labbe
6aea84f6b1 Switched to interactive plots!
Using %matplotlib notebook to render plots.

I made the g-h filter chapter work. There is a very good chance
I broke the other chapters. Need to push to really find out.
2016-02-27 17:10:09 -08:00
Roger Labbe
d0b4a1f4bc Generalized discrete Bayes with likelihood.
All my code in this chapter hard coded the computation of the
likelihood inside the update() function, where it had no business.
Also, my treatment of the likelihood was rather hand wavey. By
pulling it out of update() and maing it explicit I have created
a firm foundation for the rest of the book.
2016-01-17 12:02:00 -08:00
Roger Labbe
3e65b5d2f7 Lots of book formatting changes.
Changed default sizes of plots, changed the book template for
pdf creation, and lots of minor edits, most changing bold to
italic, and removing italic for emphasis.
2015-11-26 13:08:40 -08:00
Roger Labbe
6f6108780c Fixed errorbar plots in gh chapter.
I changed the ZZy-axis earlier, which meant that the bar for
sensor A was not visible.
2015-11-25 12:00:38 -08:00
Roger Labbe
1b71b73c55 Reran cells
Forgot to rerun all cells before last check in.
2015-11-22 11:14:13 -08:00
Roger Labbe
07931e84de Fix of typos, added explanation for Q.
In response to reader's email.
2015-08-22 11:50:47 -07:00
Roger Labbe
391e8f4d49 Added MIT license to all files. 2015-08-01 08:52:48 -07:00
Roger Labbe
6bf7552212 Added license text and import from future.
This code did not work for Python 2.x becaus I was not
importing from future. While I was altering all the files
I updated the header to include license information.
2015-08-01 08:46:14 -07:00
Roger Labbe
625c89bee4 Added MMAE filtering section. 2015-07-30 21:45:13 -07:00
Roger Labbe
925498a19e Edit to fit on 6x9 book.
Somewhat arbitrary, but I want the code to be readable on
narrow paper than 8.5x11.
2015-07-25 23:46:59 -07:00
Roger Labbe
49a464bcfa Fixed assignment to F. dt=.1, but used dt=1. 2015-07-22 11:13:07 -07:00
Roger Labbe
8b233b4ff5 Copy edit of chapter 8.
Note fully done, still have to figure out what to do with the ball
tracking code, and add a control example to the chapter.
2015-07-13 14:42:34 -07:00
Roger Labbe
9b60578728 refactor to minimize code plot size.
Added code to set x,y labels and title, and to set xlim, ylim
in one line.

Also moved some plotting code to the *internal.py files.
2015-07-09 14:28:50 -07:00
Roger Labbe
1b92397175 Checkpoint. Added a lot to the particle filter chapter. 2015-06-28 13:38:12 -07:00
Roger Labbe
fbcef07499 Adding Particle filter chapter.
This is an early, incomplete draft, but it is time to get it into
source control so I can track changes. Not ready for public
consumption.
2015-06-27 08:37:14 -07:00
Roger Labbe
5f593639d8 Altered plot styles.
Lines seemed to thick to see what is happening when they are close
to each other. Changed line width to 2.
2015-06-22 17:56:14 -07:00
Roger Labbe
8bae16b811 Changes to condense material.
Lots of small changes to try to get page count down. I'm not liking
this.
2015-04-20 17:14:51 -07:00
Roger Labbe
0086fcd201 Changes to bring page count down.
Made plots smaller, moved legends outside of plot (so smallersize
is still readable), moved plotting code into external modules.
2015-04-18 14:52:41 -07:00
Roger Labbe
9117261d25 Normalized plot styles across chapters.
I had a lot of problems with lines being visible, and ended up
using different styles in different places. I found a style that
seems to work everywhere and put the code in book_plots.py.
2015-01-31 22:42:19 -08:00