Extensive addtions to UKF chapter.

I think I finally arrived at a good ordering of material.
Started with implementing a linear problem just so we can
see how it differs from the linear KF, then added problems
step by step. Got rid of most of the poor performing filters.
This commit is contained in:
Roger Labbe
2015-02-22 11:33:51 -08:00
parent 5e479234e1
commit 37743bf604
6 changed files with 1805 additions and 1313 deletions

View File

@@ -5,6 +5,8 @@ import matplotlib.pyplot as plt
import json
import numpy as np
import sys
from contextlib import contextmanager
sys.path.insert(0,'./code') # allow us to import book_format
@@ -40,7 +42,17 @@ def reset_axis():
def set_figsize(x, y):
pylab.rcParams['figure.figsize'] = x, y
@contextmanager
def figsize(x,y):
"""Temporarily set the figure size using 'with figsize(a,b):'"""
set_figsize(x,y)
yield
reset_axis()
def _decode_list(data):
rv = []
for item in data: