Commit Graph

30 Commits

Author SHA1 Message Date
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
Roger Labbe
33c745d997 Edits for reorg
I moved book_format.py to the root directory so that all of the
notebooks do not need to modify the system path to import it. It
modifies the path on import so that all of the code in ./code can
then be accessed.

Altered links to nbviewer to account for no longer using subdirectories.
2015-01-27 15:14:06 -08:00
Roger Labbe
8416da7fdc Moved Chapter 2 as part of reorg 2015-01-27 09:51:52 -08:00
Roger Labbe
8b5122f21d Moved chapter 01 as part of book reorg 2015-01-27 09:24:52 -08:00
Roger Labbe
f6bf3b88fa Reordered color cycle.
I need to change some of the colors because they do not render
well when next to each other, as is common when I am plotting
filter output vs measurement. For now I made the yellow color
last as it is the hardest to see.
2015-01-14 11:06:09 -08:00
Roger Labbe
b97d71879b Removed cide that runs on import
When editting a notebook I tend to rerun the cells many times.
But imports are only done once, so the code in book_format()
is only run the first time. I put all of that code in a function
so that it is run every time.
2015-01-13 07:17:45 -08:00
Roger Labbe
573c9429c8 Set numpy printing to suppress scientific output. 2015-01-11 00:12:21 -08:00
Roger Labbe
bb0f9eb5ef Python 2.7 compatibility bug.
I was overwriting x,y variables with the list comprehension, causing
the lists in x,y to be replaced with a single value.
2014-12-31 13:22:16 -08:00
Roger Labbe
401a0004e1 Unicode problems with Python 2.7.
I read the matplotlib rcParams from a json file. The json module
always uses Unicode, but this does not work in Python 2.7. This
was causing the plots not to appear if using Python 2.7.

Wrote code to detect Python version and to convert to ASCII if
Python version 2.
2014-12-31 10:56:09 -08:00
Roger Labbe
7b6acde781 Removed gray background from 538 style.
white background renders better on cheap LCDs, and it will print better as well.
2014-12-22 14:20:42 -08:00
Roger Labbe
9e6c6ffb5f Removed need for matplotlibs 538 style.
I got the original code from the author, Cameron Davidson-Pilon,
modified it for the minor changes I make for the book, and put it
in 538.json. The main gain is that somebody doesn't need bleeding
edge matplotlib installed to get the 538 look.
2014-12-22 13:34:50 -08:00
Roger Labbe
5a60d94d6a Switched to 538 plot style.
I like this one the best.
2014-12-22 12:29:24 -08:00
Roger Labbe
874a2ed59c Switched to ggplot style plotting. 2014-12-22 12:15:19 -08:00
Roger Labbe
74a18b72c5 Additions to MKF chapter.
Several changes and clarifications. Added chart showing 2d distribution
of points for multivariate gaussian. Improved some discussions. Fixed
some typos.
2014-12-20 20:00:17 -08:00
Roger Labbe
7a588b0683 Added radar tracking problem.
Added the radar tracking problem from the EKF chapter to the UKF
chapter.

fixed bug in ekf_internal that was drawing the radar image on import.
2014-12-13 21:07:11 -08:00
Roger Labbe
0c6999e25f Batch processing and RTS.
This belonged with the last check in. Added desciptions on
batch processing and using the RTS smoothing algorithm.
2014-12-13 20:05:06 -08:00
Roger Labbe
f73719970d Expansion of UKF chapter.
Wrote several examples. Still more to do.
2014-11-30 15:34:06 -08:00
Roger Labbe
7a343857f0 removed explicit call to test code. 2014-11-24 17:58:11 -08:00
Roger Labbe
66f20b745e More work on R and Q.
Added more examples and cleaned up explanations on modifying R
and Q. In particular, the filter setting for R was not the same
as the simulated noise for no obvious reason. Also, names were
bad R instead of R_var, for example.
2014-11-19 23:50:11 -08:00
Roger Labbe
fe9df8a482 Added animation of multivariate tracking. 2014-09-18 13:43:16 -07:00
Roger Labbe
d8336ceae7 Added covariance ellipse animatoin. 2014-09-15 20:07:26 -07:00
Roger Labbe
cbfd8db15c Fixed errors in probability density function.
For some reason I was calling the PDF the probability, when
of course it is the probability density.
2014-09-14 21:22:00 -07:00
Roger Labbe
b4e991b783 Put GIF animation code into py script.
The animation script used in the KF chapter is general enough
to be used by the entire book, so I removed it from the notebook
and put it in gif_animate.py
2014-09-14 12:44:16 -07:00
Roger Labbe
82c5cbe71c Added animations to Discrete Bayes
Beginning of adding animations to the chapters. I wrote the
existing material not assuming animations, so it is quite
possible that I will want to revise the chapter to better
make use of this ability. For now I just animated two different
update/predict cycles.
2014-09-13 11:15:40 -07:00
Roger Labbe
1f806719f3 Fixed path issues, improved gaussian discussion.
Chapter was not adding ../code to the search path. Multivarite discusion about the ellipses
was a bit unclear about the relationship of the standard deviation.
2014-09-05 08:10:47 -07:00
Roger Labbe
842232d2ab Fixed subdirectory issue.
I changed the structure to put code in ./code, but that didn't work for preface,
whish is not in a subdirectory (parallel to ./code).
2014-09-02 20:34:18 -07:00
Roger Labbe
42d4ace9d1 more fixes for code directory 2014-09-01 19:49:25 -07:00
Roger Labbe
9ccf46c017 more changes for code directory 2014-09-01 19:44:18 -07:00
Roger Labbe
81c1bddcff fixes due to code directory 2014-09-01 19:34:01 -07:00
Roger Labbe
fc993eff4c made code directory 2014-09-01 19:26:50 -07:00