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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user