This is code implements the example given in pages 11-15 of An Introduction to the Kalman Filter by Greg Welch and Gary Bishop, University of North Carolina at Chapel Hill, Department of Computer Science.
Python Cookbook Welcome to the Python Cookbook, a collaborative collection of your contributions to Python lore. Python Cookbook code is freely available for use and review. We encourage you to contribute recipes (code and discussion), comments and rati