Commit Graph
98 Commits
Author SHA1 Message Date
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
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 10a62649df Added chart of multiple Gaussians 2015-06-24 21:00:57 -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 51c9a8283e Wholesale changes to connect chapters together.
I made a lot of changes so that each chapter makes clear that
they are all implementing the same basic bayesian algorithm.

This required a lot of editting, and it doesn't make sense to
try to do that atomically, hence this huge check in.

I made a lot of edits, and haven't copy editted anything. i'm
sure I introduced a lot of problems and discontinuities.
2015-06-20 15:52:16 -07:00
Roger Labbe 5ffe5c67eb Added UKF/EKF comparison.
Had to adjust some examples and rerun notebooks in several places
to account for some code chantes that I made.
2015-06-17 09:12:31 -07:00
Roger Labbe 87e6f5c6e7 Removed testing code. 2015-06-17 08:04:06 -07:00
Roger Labbe adba3e5915 Renamed a function. 2015-06-16 22:10:42 -07:00
Roger Labbe 1633d9cda9 Added fixed lag section. 2015-06-13 20:05:10 -07:00