@@ -482,97 +482,126 @@ def compute_average_summary_values(data : np.array(float)) -> np.array(float):
482
482
avr_data .append (np .mean (param ))
483
483
return np .array (avr_data )
484
484
485
-
486
485
def compute_summary_table (pair_pos_stripe : list [list [float ]],
487
486
pair_pos_ring : list [list [float ]],
488
487
pair_rot_stripe : list [list [float ]],
489
488
pair_rot_ring : list [list [float ]],
490
489
pair_tags_stripe : list [list [float ]],
491
490
pair_tags_ring : list [list [float ]],
492
- pair_prep_time : list [list [float ]]= None ## TODO: add!
493
- ) -> list [float ]:
491
+ mean_time_tag_lowD_stripe : float ,
492
+ mean_time_tag_lowD_ring : float ,
493
+ mean_time_tag_highD_stripe : float ,
494
+ mean_time_tag_highD_ring : float ,
495
+ mean_time_mapping_lowD_stripe : float ,
496
+ mean_time_mapping_lowD_ring : float ,
497
+ mean_time_mapping_highD_stripe : float ,
498
+ mean_time_mapping_highD_ring : float ,
499
+ total_nbr_operations : int ,
500
+ pair_time_traditional : int = 35 ,
501
+ pair_time_layout : int = 22 ,
502
+ ) -> dict :
494
503
"""
495
504
This function computes the values of the final evaluation table based
496
505
on the averaged values (all tools values merged and averaged):
497
506
- (A) position drift (mean, median, std, min, max)
498
507
- (B) rotation drift (mean, median, std, min, max)
499
508
- (C) nbr tags detected (mean, median, std, min, max)
500
- - (D) preparation time
509
+ - (D) total time (means, traditional, layout)
510
+ - (E) total number operations
501
511
"""
502
- #TODO: missing time calcuation
503
- return [
504
- np .mean (pair_pos_stripe [0 ]), # pos_mean__stripe_low
505
- np .mean (pair_pos_stripe [1 ]), # pos_mean__stripe_high
506
- np .mean (pair_pos_ring [0 ]), # pos_mean__ring_low
507
- np .mean (pair_pos_ring [1 ]), # pos_mean__ring_high
508
-
509
- np .median (pair_pos_stripe [0 ]), # pos_median__stripe_low
510
- np .median (pair_pos_stripe [1 ]), # pos_median__stripe_high
511
- np .median (pair_pos_ring [0 ]), # pos_median__ring_low
512
- np .median (pair_pos_ring [1 ]), # pos_median__ring_high
513
-
514
- np .std (pair_pos_stripe [0 ]), # pos_std__stripe_low
515
- np .std (pair_pos_stripe [1 ]), # pos_std__stripe_high
516
- np .std (pair_pos_ring [0 ]), # pos_std__ring_low
517
- np .std (pair_pos_ring [1 ]), # pos_std__ring_high
518
-
519
- np .min (pair_pos_stripe [0 ]), # pos_min__stripe_low
520
- np .min (pair_pos_stripe [1 ]), # pos_min__stripe_high
521
- np .min (pair_pos_ring [0 ]), # pos_min__ring_low
522
- np .min (pair_pos_ring [1 ]), # pos_min__ring_high
523
-
524
- np .max (pair_pos_stripe [0 ]), # pos_max__stripe_low
525
- np .max (pair_pos_stripe [1 ]), # pos_max__stripe_high
526
- np .max (pair_pos_ring [0 ]), # pos_max__ring_low
527
- np .max (pair_pos_ring [1 ]), # pos_max__ring_high
528
-
529
- np .mean (pair_rot_stripe [0 ]), # rot_mean__stripe_low
530
- np .mean (pair_rot_stripe [1 ]), # rot_mean__stripe_high
531
- np .mean (pair_rot_ring [0 ]), # rot_mean__ring_low
532
- np .mean (pair_rot_ring [1 ]), # rot_mean__ring_high
533
-
534
- np .median (pair_rot_stripe [0 ]), # rot_median__stripe_low
535
- np .median (pair_rot_stripe [1 ]), # rot_median__stripe_high
536
- np .median (pair_rot_ring [0 ]), # rot_median__ring_low
537
- np .median (pair_rot_ring [1 ]), # rot_median__ring_high
538
-
539
- np .std (pair_rot_stripe [0 ]), # rot_std__stripe_low
540
- np .std (pair_rot_stripe [1 ]), # rot_std__stripe_high
541
- np .std (pair_rot_ring [0 ]), # rot_std__ring_low
542
- np .std (pair_rot_ring [1 ]), # rot_std__ring_high
543
-
544
- np .min (pair_rot_stripe [0 ]), # rot_min__stripe_low
545
- np .min (pair_rot_stripe [1 ]), # rot_min__stripe_high
546
- np .min (pair_rot_ring [0 ]), # rot_min__ring_low
547
- np .min (pair_rot_ring [1 ]), # rot_min__ring_high
548
-
549
- np .max (pair_rot_stripe [0 ]), # rot_max__stripe_low
550
- np .max (pair_rot_stripe [1 ]), # rot_max__stripe_high
551
- np .max (pair_rot_ring [0 ]), # rot_max__ring_low
552
- np .max (pair_rot_ring [1 ]), # rot_max__ring_high
553
-
554
- np .mean (pair_tags_stripe [0 ]), # tags_mean__stripe_low
555
- np .mean (pair_tags_stripe [1 ]), # tags_mean__stripe_high
556
- np .mean (pair_tags_ring [0 ]), # tags_mean__ring_low
557
- np .mean (pair_tags_ring [1 ]), # tags_mean__ring_high
558
-
559
- np .median (pair_tags_stripe [0 ]), # tags_median__stripe_low
560
- np .median (pair_tags_stripe [1 ]), # tags_median__stripe_high
561
- np .median (pair_tags_ring [0 ]), # tags_median__ring_low
562
- np .median (pair_tags_ring [1 ]), # tags_median__ring_high
563
-
564
- np .std (pair_tags_stripe [0 ]), # tags_std__stripe_low
565
- np .std (pair_tags_stripe [1 ]), # tags_std__stripe_high
566
- np .std (pair_tags_ring [0 ]), # tags_std__ring_low
567
- np .std (pair_tags_ring [1 ]), # tags_std__ring_high
568
-
569
- np .min (pair_tags_stripe [0 ]), # tags_min__stripe_low
570
- np .min (pair_tags_stripe [1 ]), # tags_min__stripe_high
571
- np .min (pair_tags_ring [0 ]), # tags_min__ring_low
572
- np .min (pair_tags_ring [1 ]), # tags_min__ring_high
573
-
574
- np .max (pair_tags_stripe [0 ]), # tags_max__stripe_low
575
- np .max (pair_tags_stripe [1 ]), # tags_max__stripe_high
576
- np .max (pair_tags_ring [0 ]), # tags_max__ring_low
577
- np .max (pair_tags_ring [1 ]) # tags_max__ring_high
578
- ]
512
+ dict_results = {
513
+ # >>>>>>>>>>>>>> A >>>>>>>>>>>>>>>
514
+ "pos_mean__stripe_low" : np .mean (pair_pos_stripe [0 ]),
515
+ "pos_mean__stripe_high" : np .mean (pair_pos_stripe [1 ]),
516
+ "pos_mean__ring_low" : np .mean (pair_pos_ring [0 ]),
517
+ "pos_mean__ring_high" : np .mean (pair_pos_ring [1 ]),
518
+
519
+ "pos_median__stripe_low" : np .median (pair_pos_stripe [0 ]),
520
+ "pos_median__stripe_high" : np .median (pair_pos_stripe [1 ]),
521
+ "pos_median__ring_low" : np .median (pair_pos_ring [0 ]),
522
+ "pos_median__ring_high" : np .median (pair_pos_ring [1 ]),
523
+
524
+ "pos_std__stripe_low" : np .std (pair_pos_stripe [0 ]),
525
+ "pos_std__stripe_high" : np .std (pair_pos_stripe [1 ]),
526
+ "pos_std__ring_low" : np .std (pair_pos_ring [0 ]),
527
+ "pos_std__ring_high" : np .std (pair_pos_ring [1 ]),
528
+
529
+ "pos_min__stripe_low" : np .min (pair_pos_stripe [0 ]),
530
+ "pos_min__stripe_high" : np .min (pair_pos_stripe [1 ]),
531
+ "pos_min__ring_low" : np .min (pair_pos_ring [0 ]),
532
+ "pos_min__ring_high" : np .min (pair_pos_ring [1 ]),
533
+
534
+ "pos_max__stripe_low" : np .max (pair_pos_stripe [0 ]),
535
+ "pos_max__stripe_high" : np .max (pair_pos_stripe [1 ]),
536
+ "pos_max__ring_low" : np .max (pair_pos_ring [0 ]),
537
+ "pos_max__ring_high" : np .max (pair_pos_ring [1 ]),
538
+
539
+ # >>>>>>>>>>>>>> B >>>>>>>>>>>>>>>
540
+ "rot_mean__stripe_low" : np .mean (pair_rot_stripe [0 ]),
541
+ "rot_mean__stripe_high" : np .mean (pair_rot_stripe [1 ]),
542
+ "rot_mean__ring_low" : np .mean (pair_rot_ring [0 ]),
543
+ "rot_mean__ring_high" : np .mean (pair_rot_ring [1 ]),
544
+
545
+ "rot_median__stripe_low" : np .median (pair_rot_stripe [0 ]),
546
+ "rot_median__stripe_high" : np .median (pair_rot_stripe [1 ]),
547
+ "rot_median__ring_low" : np .median (pair_rot_ring [0 ]),
548
+ "rot_median__ring_high" : np .median (pair_rot_ring [1 ]),
549
+
550
+ "rot_std__stripe_low" : np .std (pair_rot_stripe [0 ]),
551
+ "rot_std__stripe_high" : np .std (pair_rot_stripe [1 ]),
552
+ "rot_std__ring_low" : np .std (pair_rot_ring [0 ]),
553
+ "rot_std__ring_high" : np .std (pair_rot_ring [1 ]),
554
+
555
+ "rot_min__stripe_low" : np .min (pair_rot_stripe [0 ]),
556
+ "rot_min__stripe_high" : np .min (pair_rot_stripe [1 ]),
557
+ "rot_min__ring_low" : np .min (pair_rot_ring [0 ]),
558
+ "rot_min__ring_high" : np .min (pair_rot_ring [1 ]),
559
+
560
+ "rot_max__stripe_low" : np .max (pair_rot_stripe [0 ]),
561
+ "rot_max__stripe_high" : np .max (pair_rot_stripe [1 ]),
562
+ "rot_max__ring_low" : np .max (pair_rot_ring [0 ]),
563
+ "rot_max__ring_high" : np .max (pair_rot_ring [1 ]),
564
+
565
+ # >>>>>>>>>>>>>> C >>>>>>>>>>>>>>>
566
+ "tags_mean__stripe_low" : np .mean (pair_tags_stripe [0 ]),
567
+ "tags_mean__stripe_high" : np .mean (pair_tags_stripe [1 ]),
568
+ "tags_mean__ring_low" : np .mean (pair_tags_ring [0 ]),
569
+ "tags_mean__ring_high" : np .mean (pair_tags_ring [1 ]),
570
+
571
+ "tags_median__stripe_low" : np .median (pair_tags_stripe [0 ]),
572
+ "tags_median__stripe_high" : np .median (pair_tags_stripe [1 ]),
573
+ "tags_median__ring_low" : np .median (pair_tags_ring [0 ]),
574
+ "tags_median__ring_high" : np .median (pair_tags_ring [1 ]),
575
+
576
+ "tags_std__stripe_low" : np .std (pair_tags_stripe [0 ]),
577
+ "tags_std__stripe_high" : np .std (pair_tags_stripe [1 ]),
578
+ "tags_std__ring_low" : np .std (pair_tags_ring [0 ]),
579
+ "tags_std__ring_high" : np .std (pair_tags_ring [1 ]),
580
+
581
+ "tags_min__stripe_low" : np .min (pair_tags_stripe [0 ]),
582
+ "tags_min__stripe_high" : np .min (pair_tags_stripe [1 ]),
583
+ "tags_min__ring_low" : np .min (pair_tags_ring [0 ]),
584
+ "tags_min__ring_high" : np .min (pair_tags_ring [1 ]),
585
+
586
+ "tags_max__stripe_low" : np .max (pair_tags_stripe [0 ]),
587
+ "tags_max__stripe_high" : np .max (pair_tags_stripe [1 ]),
588
+ "tags_max__ring_low" : np .max (pair_tags_ring [0 ]),
589
+ "tags_max__ring_high" : np .max (pair_tags_ring [1 ]),
590
+
591
+ # >>>>>>>>>>>>>> D >>>>>>>>>>>>>>>
592
+ "time_tag_lowD_stripe" : mean_time_tag_lowD_stripe ,
593
+ "time_tag_lowD_ring" : mean_time_tag_lowD_ring ,
594
+ "time_tag_highD_stripe" : mean_time_tag_highD_stripe ,
595
+ "time_tag_highD_ring" : mean_time_tag_highD_ring ,
596
+ "time_mapping_lowD_stripe" : mean_time_mapping_lowD_stripe ,
597
+ "time_mapping_lowD_ring" : mean_time_mapping_lowD_ring ,
598
+ "time_mapping_highD_stripe" : mean_time_mapping_highD_stripe ,
599
+ "time_mapping_highD_ring" : mean_time_mapping_highD_ring ,
600
+ "time_traditional" : pair_time_traditional ,
601
+ "time_layout" : pair_time_layout ,
602
+
603
+ # >>>>>>>>>>>>>> E >>>>>>>>>>>>>>>
604
+ "total_nbr_operations" : total_nbr_operations
605
+ }
606
+
607
+ return dict_results
0 commit comments