Comparison of 1D and 2D filter.

Added exercises comparing 1D filter using Gaussians vs 1D filter
using KalmanFilter class, and comparing a 1D filter vs a filter
incorporating the unobserved derivative of x.
This commit is contained in:
Roger Labbe 2014-08-30 00:08:27 -07:00
parent 87d4d973ac
commit 6ab8c5da92
3 changed files with 675 additions and 165 deletions

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:9d68a24ea6a03e1ff66886329b02e8c6e191d2db1b7f458669eab700af583050"
"signature": "sha256:4414002ad322665b3f542b87dd68548502bce8e0ed0e7850a50229d72015c435"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -930,7 +930,7 @@
"level": 2,
"metadata": {},
"source": [
"Implementing Updates"
"Implementing Predictions"
]
},
{

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:65ed87658245046683e9bc29217fbb80b0e626bf1af1d8084589c08a10b413cc"
"signature": "sha256:ce40207f3bc97f093a6d0e943ce3efb3506ade3873886bdf36d74e785611b3e0"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -44,7 +44,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
"prompt_number": 20
},
{
"cell_type": "code",
@ -81,110 +81,110 @@
"output_type": "stream",
"stream": "stdout",
"text": [
"0.829799081522 0.829799081522\n",
"1.11657328836 1.11657328836\n",
"2.60484331656 2.60484331656\n",
"4.49991898992 4.49991898992\n",
"4.96959734671 4.96959734671\n",
"5.62090599924 5.62090599924\n",
"6.62676551801 6.62676551801\n",
"7.17411383707 7.17411383707\n",
"8.22589645236 8.22589645236\n",
"9.68407847845 9.68407847845\n",
"10.7846369056 10.7846369056\n",
"10.9474107429 10.9474107429\n",
"13.1938820521 13.1938820521\n",
"14.5982855965 14.5982855965\n",
"16.0869457423 16.0869457423\n",
"16.9075718464 16.9075718464\n",
"17.4098040813 17.4098040813\n",
"19.0869215468 19.0869215468\n",
"19.8234493932 19.8234493932\n",
"20.1047073436 20.1047073436\n",
"21.0052752387 21.0052752387\n",
"21.1874177725 21.1874177725\n",
"22.8594121392 22.8594121392\n",
"24.1776382364 24.1776382364\n",
"25.8376519754 25.8376519754\n",
"27.3430811764 27.3430811764\n",
"27.5187562442 27.5187562442\n",
"26.9915649343 26.9915649343\n",
"28.4780664826 28.4780664826\n",
"29.810753716 29.810753716\n",
"31.6508396458 31.6508396458\n",
"32.5037739338 32.5037739338\n",
"33.8584143825 33.8584143825\n",
"33.8776271222 33.8776271222\n",
"35.5242613545 35.5242613545\n",
"36.519783756 36.519783756\n",
"36.3488727922 36.3488727922\n",
"37.8636116598 37.8636116598\n",
"39.0723631747 39.0723631747\n",
"39.9711641266 39.9711641266\n",
"41.4487411592 41.4487411592\n",
"42.3356350788 42.3356350788\n",
"43.3965556332 43.3965556332\n",
"44.9391890292 44.9391890292\n",
"46.9342496588 46.9342496588\n",
"45.968617491 45.968617491\n",
"47.4965506188 47.4965506188\n",
"48.4848670589 48.4848670589\n",
"49.4249280321 49.4249280321\n",
"50.0093718198 50.0093718198\n",
"50.3027074022 50.3027074022\n",
"51.281454098 51.281454098\n",
"52.7264828805 52.7264828805\n",
"53.4501779367 53.4501779367\n",
"54.1096052489 54.1096052489\n",
"55.3709733324 55.3709733324\n",
"56.9577696685 56.9577696685\n",
"57.8901308737 57.8901308737\n",
"58.7172970247 58.7172970247\n",
"60.5336542662 60.5336542662\n",
"61.1350857058 61.1350857058\n",
"63.0005784455 63.0005784455\n",
"63.5000655463 63.5000655463\n",
"63.8518134142 63.8518134142\n",
"65.8465552577 65.8465552577\n",
"66.7400646473 66.7400646473\n",
"66.8160042604 66.8160042604\n",
"67.5001380601 67.5001380601\n",
"69.2213351148 69.2213351148\n",
"70.7970352555 70.7970352555\n",
"71.6170587238 71.6170587238\n",
"71.8435329248 71.8435329248\n",
"72.7477102909 72.7477102909\n",
"73.2184233535 73.2184233535\n",
"74.5671596854 74.5671596854\n",
"75.927838911 75.927838911\n",
"77.3248818672 77.3248818672\n",
"78.3493332795 78.3493332795\n",
"79.955729761 79.955729761\n",
"80.1451532378 80.1451532378\n",
"81.7478421332 81.7478421332\n",
"83.4286167873 83.4286167873\n",
"84.3119158883 84.3119158883\n",
"84.46121675 84.46121675\n",
"85.2398001115 85.2398001115\n",
"86.4216278548 86.4216278548\n",
"86.9207107003 86.9207107003\n",
"88.6062087038 88.6062087038\n",
"88.3828461934 88.3828461934\n",
"89.9747496843 89.9747496843\n",
"91.1423576281 91.1423576281\n",
"91.1750403785 91.1750403785\n",
"93.8774517576 93.8774517576\n",
"94.3911839298 94.3911839298\n",
"95.694756916 95.694756916\n",
"97.0314685474 97.0314685474\n",
"97.0502972107 97.0502972107\n",
"97.6877008238 97.6877008238\n",
"99.2864064463 99.2864064463\n",
"100.840809936 100.840809936\n"
"0.664384271377 0.664384271377\n",
"2.22227758606 2.22227758606\n",
"3.4172403366 3.4172403366\n",
"4.24063420552 4.24063420552\n",
"5.22473319997 5.22473319997\n",
"5.46612331732 5.46612331732\n",
"6.7346061548 6.7346061548\n",
"7.89654509649 7.89654509649\n",
"8.47171516678 8.47171516678\n",
"10.7084468468 10.7084468468\n",
"12.6133769702 12.6133769702\n",
"12.3117642898 12.3117642898\n",
"13.8143561571 13.8143561571\n",
"15.1102237851 15.1102237851\n",
"14.6087213015 14.6087213015\n",
"15.6175764575 15.6175764575\n",
"17.4530455485 17.4530455485\n",
"19.218669382 19.218669382\n",
"19.842640257 19.842640257\n",
"21.0396707771 21.0396707771\n",
"20.8548540387 20.8548540387\n",
"21.7993178972 21.7993178972\n",
"23.1601232215 23.1601232215\n",
"23.8020951292 23.8020951292\n",
"24.5589139955 24.5589139955\n",
"25.2648382153 25.2648382153\n",
"26.3808199764 26.3808199764\n",
"28.0259953354 28.0259953354\n",
"28.9543385004 28.9543385004\n",
"30.0278535184 30.0278535184\n",
"31.5690196179 31.5690196179\n",
"32.4717047765 32.4717047765\n",
"33.8319099215 33.8319099215\n",
"34.3625317212 34.3625317212\n",
"34.2069889773 34.2069889773\n",
"34.9681205575 34.9681205575\n",
"37.1308718998 37.1308718998\n",
"38.3242660235 38.3242660235\n",
"39.5842365428 39.5842365428\n",
"39.7981314712 39.7981314712\n",
"41.3807379194 41.3807379194\n",
"42.1642193964 42.1642193964\n",
"42.8873765732 42.8873765732\n",
"45.2149230527 45.2149230527\n",
"46.6221441815 46.6221441815\n",
"46.9760943769 46.9760943769\n",
"46.8175543204 46.8175543204\n",
"48.5019757199 48.5019757199\n",
"49.9143390923 49.9143390923\n",
"50.4804330008 50.4804330008\n",
"52.0256389036 52.0256389036\n",
"51.8114561147 51.8114561147\n",
"53.974428537 53.974428537\n",
"53.9347539305 53.9347539305\n",
"54.8458985477 54.8458985477\n",
"55.8948299555 55.8948299555\n",
"56.8829522326 56.8829522326\n",
"58.1054439422 58.1054439422\n",
"58.5375097795 58.5375097795\n",
"59.2611573706 59.2611573706\n",
"59.7132715231 59.7132715231\n",
"61.5788978249 61.5788978249\n",
"62.6053334603 62.6053334603\n",
"64.1160504937 64.1160504937\n",
"64.9051800497 64.9051800497\n",
"65.8171413931 65.8171413931\n",
"67.5405856008 67.5405856008\n",
"69.3558420075 69.3558420075\n",
"69.2601512441 69.2601512441\n",
"70.5926254448 70.5926254448\n",
"72.2861748617 72.2861748617\n",
"72.2128001363 72.2128001363\n",
"73.3475331447 73.3475331447\n",
"73.9061038839 73.9061038839\n",
"75.4191354917 75.4191354917\n",
"76.0817944369 76.0817944369\n",
"76.9319955496 76.9319955496\n",
"79.2451599226 79.2451599226\n",
"78.8853267224 78.8853267224\n",
"79.631237244 79.631237244\n",
"80.6764469096 80.6764469096\n",
"82.5190126375 82.5190126375\n",
"83.2134146817 83.2134146817\n",
"84.2811052968 84.2811052968\n",
"84.8078912273 84.8078912273\n",
"86.5334238222 86.5334238222\n",
"86.5214834008 86.5214834008\n",
"87.8228643692 87.8228643692\n",
"89.0913414521 89.0913414521\n",
"89.9159627612 89.9159627612\n",
"91.2593135665 91.2593135665\n",
"92.4642469142 92.4642469142\n",
"92.7895992833 92.7895992833\n",
"93.9979031977 93.9979031977\n",
"94.6721942775 94.6721942775\n",
"96.7630484108 96.7630484108\n",
"96.7600593835 96.7600593835\n",
"98.0318096805 98.0318096805\n",
"99.4928692605 99.4928692605\n",
"100.452736197 100.452736197\n"
]
}
],
"prompt_number": 19
"prompt_number": 21
},
{
"cell_type": "code",