|
Formula Student Autonomous Systems
The code for the main driverless system
|


Public Member Functions | |
| setUp (self) | |
| test_get_average_difference1 (self) | |
| test_get_average_difference2 (self) | |
| test_get_average_difference3 (self) | |
| test_get_mean_squared_error (self) | |
| test_get_inter_cones_distance (self) | |
| test_get_inter_cones_distance2 (self) | |
| test_get_false_positives (self) | |
| test_get_false_positives2 (self) | |
| test_get_duplicates (self) | |
| test_get_duplicates2 (self) | |
| test_adjacency_matrix (self) | |
| test_adjacency_matrix2 (self) | |
Public Attributes | |
| output | |
| ground_truth | |
Test case for the data association methods of the Evaluator class.
Definition at line 14 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.setUp | ( | self | ) |
Set up the test environment by initializing output and ground truth arrays.
Definition at line 19 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_adjacency_matrix | ( | self | ) |
Test the build_adjacency_matrix function with a subarray of the ground truth array. Expects an adjacency matrix calculated based on pairwise distances.
Definition at line 126 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_adjacency_matrix2 | ( | self | ) |
Test the build_adjacency_matrix function with a different subarray of the ground truth array. Expects an adjacency matrix calculated for a different subset of cones.
Definition at line 139 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_average_difference1 | ( | self | ) |
Test the get_average_difference function when both arrays are non-empty. Expects a correct average difference based on manually calculated values.
Definition at line 39 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_average_difference2 | ( | self | ) |
Test the get_average_difference function when the output array is empty. Expects infinity as the return value.
Definition at line 47 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_average_difference3 | ( | self | ) |
Test the get_average_difference function when the ground truth array is empty. Expects a ValueError due to incompatible data.
Definition at line 55 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_duplicates | ( | self | ) |
Test the get_duplicates function with a threshold of 0.01. Expects no duplicates since the output array does not contain any within this threshold.
Definition at line 107 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_duplicates2 | ( | self | ) |
Test the get_duplicates function with a threshold of 1.0. Expects 1 duplicate since the ground truth array contains a close match within this threshold.
Definition at line 116 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_false_positives | ( | self | ) |
Test the get_false_positives function with a threshold of 1.0. Expects the number of false positives based on the given threshold and arrays.
Definition at line 87 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_false_positives2 | ( | self | ) |
Test the get_false_positives function with arrays swapped and a threshold of 1.0. Expects a different number of false positives when the arrays are swapped.
Definition at line 96 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_inter_cones_distance | ( | self | ) |
Test the get_inter_cones_distance function for a non-empty output array. Expects a correct average inter-cone distance based on the output array.
Definition at line 71 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_inter_cones_distance2 | ( | self | ) |
Test the get_inter_cones_distance function for an empty output array. Expects a zero return value since there are no cones.
Definition at line 79 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.test_get_mean_squared_error | ( | self | ) |
Test the get_mean_squared_difference function with valid output and ground truth arrays. Expects a mean squared difference close to the manually calculated value.
Definition at line 63 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.ground_truth |
Definition at line 29 of file test_data_association_metrics.py.
| test_data_association_metrics.TestDataAssociationMetrics.output |
Definition at line 23 of file test_data_association_metrics.py.