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.
This commit is contained in:
Roger Labbe
2015-07-08 18:42:12 -07:00
parent 4306a09182
commit dff91d9a6f
17 changed files with 663 additions and 1279 deletions

View File

@@ -9,7 +9,7 @@ import math
import matplotlib.pylab as pylab
import matplotlib.pyplot as plt
import numpy as np
import stats
import filterpy.stats as stats
def plot_height_std(x, lw=10):
m = np.mean(x)
@@ -20,13 +20,13 @@ def plot_height_std(x, lw=10):
plt.xlim(0,len(x)+1)
plt.axhline(m-s, ls='--')
plt.axhline(m+s, ls='--')
plt.fill_between((0, len(x)+1), m-s, m+s,
plt.fill_between((0, len(x)+1), m-s, m+s,
facecolor='yellow', alpha=0.4)
plt.xlabel('student')
plt.ylabel('height (m)')
plt.show()
def plot_gaussian (mu, variance,
mu_line=False,
xlim=None,