Skip to content

Commit 53e8fc2

Browse files
committed
plus de détail dans la doc du mapmatching
1 parent f668ab9 commit 53e8fc2

File tree

1 file changed

+31
-15
lines changed

1 file changed

+31
-15
lines changed

doc/source/userguide/UG_MapMatchingOnNetwork.ipynb

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"id": "576c2b91",
241241
"metadata": {},
242242
"source": [
243-
"## Prepare and launch the map matching process"
243+
"## Prepare, launch the map matching process and compute few stats"
244244
]
245245
},
246246
{
@@ -299,7 +299,26 @@
299299
"name": "stdout",
300300
"output_type": "stream",
301301
"text": [
302-
"Launching Map-matching\n",
302+
"Launching Map-matching\n"
303+
]
304+
}
305+
],
306+
"source": [
307+
"print ('Launching Map-matching')\n",
308+
"# Map track on network\n",
309+
"trk.mapOnNetwork(trace, network, search_radius=25, debug=False)"
310+
]
311+
},
312+
{
313+
"cell_type": "code",
314+
"execution_count": 8,
315+
"id": "4bc88a31-adc6-41e7-a513-b443d16b6fea",
316+
"metadata": {},
317+
"outputs": [
318+
{
319+
"name": "stdout",
320+
"output_type": "stream",
321+
"text": [
303322
"\n",
304323
"Few statistics results:\n",
305324
" Number of points = 52\n",
@@ -310,10 +329,6 @@
310329
}
311330
],
312331
"source": [
313-
"print ('Launching Map-matching')\n",
314-
"# Map track on network\n",
315-
"trk.mapOnNetwork(trace, network, search_radius=25, debug=False)\n",
316-
"\n",
317332
"# Few statistics:\n",
318333
"print ('')\n",
319334
"print ('Few statistics results:')\n",
@@ -341,7 +356,7 @@
341356
"\n",
342357
"# Calcul du RMSE\n",
343358
"rmse = round(math.sqrt(d/nbmm),2)\n",
344-
"print (' GPS standard error = ' + str(rmse) + ' m')\n"
359+
"print (' GPS standard error = ' + str(rmse) + ' m')"
345360
]
346361
},
347362
{
@@ -354,7 +369,7 @@
354369
},
355370
{
356371
"cell_type": "code",
357-
"execution_count": 8,
372+
"execution_count": 9,
358373
"id": "3c91f16c",
359374
"metadata": {
360375
"editable": true,
@@ -369,10 +384,10 @@
369384
{
370385
"data": {
371386
"text/plain": [
372-
"<matplotlib.legend.Legend at 0x7206914bf1f0>"
387+
"<matplotlib.legend.Legend at 0x7f6035b53fa0>"
373388
]
374389
},
375-
"execution_count": 8,
390+
"execution_count": 9,
376391
"metadata": {},
377392
"output_type": "execute_result"
378393
},
@@ -432,12 +447,12 @@
432447
"id": "39cd99c3-5757-4254-bfbb-a74e6e712418",
433448
"metadata": {},
434449
"source": [
435-
"As expected, **observation 37** is not map-matched: the index of the edge onto which the point is projected has value *\"-1\""
450+
"As expected, **observation 37** is not map-matched: the index of the edge onto which the point is projected has value **\"-1\"**"
436451
]
437452
},
438453
{
439454
"cell_type": "code",
440-
"execution_count": 9,
455+
"execution_count": 10,
441456
"id": "80d388c4-5c02-4938-b6d8-4b33a6a36b9b",
442457
"metadata": {},
443458
"outputs": [
@@ -453,7 +468,8 @@
453468
],
454469
"source": [
455470
"print ('')\n",
456-
"print ('Index of the edge onto which the point is projected: ', trace[\"hmm_inference\", 37][1])\n",
471+
"print ('Index of the edge onto which the point is projected: ', \n",
472+
" trace[\"hmm_inference\", 37][1])\n",
457473
"\n",
458474
"# Distance to the raw observation is 0\n",
459475
"p = trace[\"hmm_inference\", 37][0]\n",
@@ -474,12 +490,12 @@
474490
"id": "d14d0113-0cb0-4d9c-a496-40455cf79f28",
475491
"metadata": {},
476492
"source": [
477-
"Note that **observation 40** is map-matched on a node if the network and not on an edge. "
493+
"Note that **observation 40** is map-matched on a node and not on an edge of the network. "
478494
]
479495
},
480496
{
481497
"cell_type": "code",
482-
"execution_count": 10,
498+
"execution_count": 11,
483499
"id": "6ed8bc41-bcb8-4ca2-b1a3-47982477b4a5",
484500
"metadata": {},
485501
"outputs": [

0 commit comments

Comments
 (0)