Commit Graph

368 Commits

Author SHA1 Message Date
Roger Labbe
cc25596e57 Added plot titles.
Added titles to plot so reader can understand what is being shown
without having to read the code.

Also added some text to expand on a few explanations.
2015-01-24 10:50:18 -08:00
Roger Labbe
ccf79aab09 Added warnings about unfinished EKF chapter.
The EKF chapter is a very early draft/dump of material, and
yet people are trying to use it. They really shouldn't.
2015-01-22 08:56:26 -08:00
Roger Labbe
a4bcbd0f14 Added section on fat tails. 2015-01-18 10:04:31 -08:00
Roger Labbe
15a3c5c86c Changed how sections numbering is done in PDF. 2015-01-18 09:56:32 -08:00
Roger Labbe
afe0b5626e Altered PDF generation.
Added code to inject \appendix to the first appendix notebook
so that they are properly labelled. Started g-h chapter as chapter
one. There is probably a lot more I want to do now that I have
the basic idea of how to inject latex into the files before creating
the PDF, but this is a good start.
2015-01-17 09:39:26 -08:00
Roger Labbe
dbcb166150 Added scatterpoints=1 to legend where applicable. 2015-01-16 18:36:17 -08:00
Roger Labbe
e8facb1a8a Typos, and reran cells so numbering is sequential. 2015-01-16 06:29:37 -08:00
Roger Labbe
20f22d2cd6 Sensor fusion at different rates
Discussed how to perform sensor fusion when the sensors run at different rates.
2015-01-15 19:17:57 -08:00
Roger Labbe
28be39e0bf Added labels to the charts. 2015-01-14 22:17:39 -08:00
Roger Labbe
917e66bf86 Fixed errors in display of std error.
For some reason I was displaying the std error as +/- the filter
output, not the true path. I also neglected to take the sqrt of
the variance.
2015-01-14 22:15:16 -08:00
Roger Labbe
6c9b693d7d Generaded PDF. 2015-01-14 11:16:16 -08:00
Roger Labbe
df2e5f5518 Added large section on filter order. 2015-01-14 11:11:48 -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
88ad62b12f Discussion of performance of different orders.
Added description of how over and underdetermined filters perform.
2015-01-13 20:47:51 -08:00
Roger Labbe
597d3e2b5a Clean up headers, added exercise.
UKF chapter's headings were all messed up in the PDF output. I added
an exercise to use the unscented transform on the 5,000 point nonlinear
monte carlo example from the beginning of the chapter.
2015-01-13 14:02:55 -08:00
Roger Labbe
6533e3b22e Fixed typo 2015-01-13 07:56:50 -08:00
Roger Labbe
f83282a289 Fixed bug, some clean up.
I was plotting velocity, not position of filter in one plot.

Also, wrote a initialize_filter function so all plot start
with the filter initialized to the same value.
2015-01-13 07:19:10 -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
84c16e1533 script to copy PDF to gh-pages. 2015-01-12 19:06:13 -08:00
Roger Labbe
860bc16346 More MM text. 2015-01-12 19:06:01 -08:00
Roger Labbe
b7e78ff6cf Added section using Zarchan's adaptive filter. 2015-01-12 18:21:32 -08:00
Roger Labbe
efd40c3e5e Minor layout changes, typos. 2015-01-12 09:46:52 -08:00
Roger Labbe
066958366c Expanded coverage.
Probably mostly just the Fading memory, but also played with
length of data, noise settings, etc.
2015-01-11 13:22:36 -08:00
Roger Labbe
b40184dd45 Added Adaptive filtering chapter to PDF. 2015-01-11 00:30:17 -08:00
Roger Labbe
026413dbd4 Added Adaptive Filtering chapter.
Still a lot of work to be done on it. This is just an
initial commit.
2015-01-11 00:13:12 -08:00
Roger Labbe
573c9429c8 Set numpy printing to suppress scientific output. 2015-01-11 00:12:21 -08:00
Roger Labbe
23aee4b3ff Altered language of readme file.
Tried to make it clearer that you can click on the link to
immediately start reading online.
2015-01-08 21:39:12 -08:00
Roger Labbe
995bbc4ad2 Added readme to each subdirectory.
Contains link to nbviewer version of the book - allows browsing github
use to immediately start reading the book.
2015-01-08 21:27:16 -08:00
Roger Labbe
62ff1cf441 Trial - adding readme to chapter subdirectory.
Provides link to online book so github user can start reading
immediately.
2015-01-08 21:23:45 -08:00
Roger Labbe
fe6900dc3c Changed pdf style to 'book'. 2015-01-08 21:16:36 -08:00
Roger Labbe
94f2f1af9b Minor text edits.
Replaced 'transverse' with 'transpose'.

Fixed creative commons license - it was pointing to the old
name of the book.
2015-01-08 21:14:44 -08:00
Roger Labbe
f635810a70 Adjusted template to generate TOC. 2015-01-08 19:10:26 -08:00
Roger Labbe
cfdf66a5eb Fixed headers for nbconvert.
nbconvert does not work with the ### style headers, so I
converted to using the header cells where I was using the hash
headers.
2015-01-08 09:03:14 -08:00
Roger Labbe
c241f715c9 Added to g-h Chapter
Added more examples, and added more charts to illustrate what
I was talking about. Notably, added error bars to the weight
readings to make the possible range of values clear.
2015-01-07 19:17:08 -08:00
Roger Labbe
d096acce09 Fixed a few typos.
Text and code used slightly different number from earlier edits.
2015-01-04 09:46:55 -08:00
Roger Labbe
ea6a9601a2 Fixed Broken Header
For some reason the Heading 1 cell cannot accept \infty latex.
I am sure this used to work; I have done some updates so perhaps
something changed?
2015-01-03 16:49:50 -08:00
Roger Labbe
952d81e3ef Added installation instructions.
Expanded installation instructions in the preface, readme,
and appendix.
2014-12-31 19:02:40 -08:00
Roger Labbe
c71cac557f Added SymPy and FilterPy to list of requirements. 2014-12-31 17:10:27 -08:00
Roger Labbe
53f1101047 Python 2.7 compatibility.
list does not have copy in 2.7, so I created a new tuple where
I was using list.copy().
2014-12-31 13:55:24 -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
e68c9b9b14 Minor typo fixes. 2014-12-30 14:40:02 -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
8eaa6ee693 Reran for 538 plot formatting.
Ran all notebooks so that all images are properly plotted using
the 538 matplotlib style.
2014-12-22 13:07:31 -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
fc7c174999 update() and predict() alter in place.
I made the update() and predict() functions alter the belief array
in place rather than returning the value in a new array. I find this
far more readable and less error prone.
2014-12-20 20:56:23 -08:00
Roger Labbe
17b30bc395 Renamed variables to improve understanding.
I used p and pos for the belief in position, which can be a bit
confusing.
2014-12-20 20:33:44 -08:00
Roger Labbe
62f13ace77 Renamed chapter.
Renamed to One Dimensional Kalman Filters
2014-12-20 20:33:18 -08:00