Commit Graph

106 Commits

Author SHA1 Message Date
Roger Labbe
d9ba9fde22 Scatter plot of bearing shows 2 results.
The text in the book gave one example, and then hand waved an
explanation about a different bearing choice. It is clearer to
just show it in a graph.
2016-01-10 09:00:00 -08:00
Roger Labbe
800ea6c189 Cleaned up equations for UKF.
I was using a bunch of variable names that weren't consistent
with the rest of the book (but perhaps are more consistent with
the literature). It just made everything more challenging than
it needed to be, so instead of \mu and \sigma (e.g.) I use
\bar x and \bar P.

I also am in the middle of rewriting some sections for clarity,
but that work is not completed.
2016-01-09 08:52:03 -08:00
Roger Labbe
6b9b97927d Redid Discrete Bayes animations.
I added titles so you can see where in the processing the
graph is.

This surfaced a bug in matplotlib 1.5 (#5399) so I added
some code to work around that.
2016-01-09 08:49:29 -08:00
Roger Labbe
8a01161ea4 Streamlined description of EKF linearization 2016-01-03 11:32:22 -08:00
Adriano rsvp.github.com
6444d77818 code directory: Add __init__.py for access as package
Useful for absolute import.
2015-12-26 17:24:30 -08:00
Roger Labbe
77ba700e39 Revised particle filter chapter.
Pretty happy with it now. Needs copy editing, and probably an
easier introduction to convey the basic idea. Moved from a class
based approach to a procedural approach, and I like that very much.
2015-12-19 16:18:21 -08:00
Roger Labbe
3c270d0c87 Fixed latex typo. 2015-12-19 16:17:40 -08:00
Roger Labbe
41d8d246e0 Extensive copy editing. 2015-12-09 06:31:14 -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
c0fe5e7de8 Book format changes.
Moved book_format out of code to simplify importing it into the
notebooks. Added code to it to suppress future warnings from
matplotlib 1.4.3, and to set the numpy print precision to 3
decimal places.
2015-11-25 13:29:40 -08:00
Roger Labbe
7cd8e11b57 More work on multivariate gaussians.
Not copy edited yet, but more work on making the material on
multivariate gaussian more understandable (mostly by reordering
concepts).
2015-11-25 12:39:15 -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
5ae739a2c6 Altered font size to be a bit more readable. 2015-11-21 12:54:45 -08:00
Roger Labbe
b030488cb3 Used better variable names for formatting code. 2015-11-21 12:54:23 -08:00
dnstanciu
585ebdaf2a Fixed JSON settings being overwritten with matplotlib version. 2015-11-18 19:18:08 +01:00
Roger Labbe
56ede47d83 Fixed deprecated use of axes.color_cycle
Matplotlib 1.5 deprecrates the use of axes.color_cycle in favor
of axes.prop_cycle

I prefer to use the new styles coming from matplotlib, but for now,
to maintain backwards compatibility, I am hand coding the styles
still.
2015-11-14 08:55:24 -08:00
JIMYL
8051fa3096 Fix systemic_resample float indexes
indexes should be created as INT array
2015-10-26 22:32:38 +08:00
Roger Labbe
4f7c896507 Fixed section numbering.
I had some sections at level 2 when they should have been
level 3.
2015-10-19 18:01:39 -07:00
Roger Labbe
2546428641 Updated filterpy requirement to 0.0.28 2015-08-29 08:33:40 -07:00
Roger Labbe
43b55214a8 Start of IMM section, lots left to do 2015-08-22 12:22:09 -07: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
2ad95fa0e1 Cleaned up example for 1D vs 2D filter
The code was very unclear, including unused variables.

I also expanded the example.
2015-08-08 17:22:28 -07:00
Roger Labbe
b0a4b5d159 Updated to require FilterPy 0.0.26 2015-08-08 17:22:04 -07:00
Roger Labbe
0bc0b9c348 Extensive code changes for readability.
Content is largely the same, but I reduced the number of functions
that the code uses to minimize the amount of scrolling back and
forth. I move the dog simulation back into the notebook so that
it is easily inspected - people have been confused about what it
is doing.
2015-08-08 14:48:20 -07:00
Roger Labbe
be713acc68 Fixed display of marginals on 3d plots of Gaussian
The contours were displaying multiple curves, which doesn't have
a lot of meaning. Replaced with the marginal distribution.
2015-08-08 10:06:29 -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
edd5f80c90 Trying a different font for body text. 2015-07-27 21:51:31 -07:00
Roger Labbe
cf224dfa63 More explicit wording to identify curves.
I was saying 'blue curve' 'green curve', but those have no meaning,
especially if printed in black and white. Switched to explicit
$\sigma=0.2$.

Also added second std in the chart showing the 68-95-99.7 rule.
2015-07-27 21:50:03 -07:00
Roger Labbe
c1b3703ce6 Changed notation for prior to a car.
The ^- notation was pretty unreadable, and inconsistant with the
hat notation for estimates.
2015-07-26 19:20:58 -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
335db298ff Implemeenting PDF in 6x9 format.
I did the work on chapter 1 just to start somewhere. Trying to make
the book fit nicely on a 6x9 book format.
2015-07-25 15:23:11 -07:00
Roger Labbe
0d836c7e03 Altered look of residual charts.
User ulenka on gitter suggest changing the color for the
residual line. I found my changes garish, so I switched
to a thicker black line and changed the grids to dotted.
2015-07-24 20:34:36 -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
14478ce60a Experiement to see if MathJax is rending correctly.
I was specifying the Neo-Euler font, which renders poorly
on nbviewer. This is a test to make sure it works before
checking in all notebooks. (I have to re-execute the notebook)
so that the script from the css file gets embedded into the
notebook).
2015-07-19 10:58:19 -07:00
Roger Labbe
ca88bd82b3 Fixed font issue for nbviewer.
The Neo-Euler was rendering with no subscripts or superscripts.
Not sure why, but I swithed to the "TeX" font and all is well.
2015-07-19 10:51:32 -07:00
Roger Labbe
43070a4439 Copy edit of UKF chapter.
Also found a mistake in the text about computing the residual
of angles that was duplicated in the EKF chapter, so I fixed the
error in that chapter as well.

I pulled out the 'track in a circle' example as it is the usual
sort of textbook nonsense problem that no one cares about. I created
an 'old-content' Notebook in case anyone still wants to see it; I
may put more content there as I continue to edit.
2015-07-18 17:21:27 -07:00
Roger Labbe
6092e06459 Better code formatting with ``python
There is more than that here. I had a bad commit of a bunch of temporary
files, I had to reset back in time, and now I am doing a massive commit.
Sorry.
2015-07-18 08:43:24 -07:00
Roger Labbe
335df7f42d Fixed bug in EKF residual function.
Comment was wrong, it normalizes to [-pi, pi].

Also, code didn't handle cases where a-b > 2Pi
2015-07-15 19:03:59 -07:00
Roger Labbe
aba6a9dcf7 Moved all code to \code subdirectory.
All these changes are to make the book easier to run from
cloud.sagemath.org. You can share individual notebooks there,
but not entire projects.By putting everything under code at the
user only needs to grab that one directory.

More on sagemath later, if I decide to pursue that as a delivery
mechanism...
2015-07-13 23:16:04 -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
878e4a5578 checkpoint; in midst of big re-org.
This is not a 'useful'checkin. I'm heavily reorganizing teh
multivariate chapter (spliltting in two) and I am getting
worried about losing edits.
2015-07-12 18:57:43 -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
dff91d9a6f Fixed notebooks for FilterPy code reorg.
I made a separate filterpy.stats module becuase it made
little sense to import filterpy.common for stats
functions. This required a lot of changes in the notebooks
and supporting code.
2015-07-08 18:42:12 -07:00
Roger Labbe
4306a09182 Made markers more reable in plots. 2015-07-08 16:13:03 -07:00
Roger Labbe
f8896bbb80 Lots of material on resampling.
Happy 4th of July!
2015-07-04 20:12:33 -07:00
Roger Labbe
24e70d7c77 Added MM filter bank. 2015-06-30 20:14:39 -07:00
Roger Labbe
1b92397175 Checkpoint. Added a lot to the particle filter chapter. 2015-06-28 13:38:12 -07:00