src.tests.min_dist_decimator_test
Classes
- class src.tests.min_dist_decimator_test.MinDistDecimatorTest
- Author:
Alberto M. Esmoris Pena
Minimum distance decimator test that checks the minimum distance decimated representation of point clouds is correctly computed.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run minimum distance decimator test.
- Returns:
True if the minimum distance decimator works as expected for the test cases, False otherwise.
- Return type:
bool
- static validate_decimator(mdd, min_distance, X, F, y, eF, ey)
Check whether the given
MinDistDecimatorDecoratoryields the expected output.- Parameters:
mdd (
MinDistDecimatorDecorator) – TheMinDistDecimatorDecoratorto be validated.min_distance (float) – The minimum distance parameter.
X (
np.ndarray) – The input structure space matrix (i.e., matrix of point-wise coordinates).F (
np.ndarray) – The feature space matrix (i.e., matrix of point-wise features).y (
np.ndarray) – The input vector of point-wise classes.eF (
np.ndarray) – The expected feature space after decimation.ey (
np.ndarray) – The expected point-wise classes after decimation.
- Returns:
True if the
MinDistDecimatorDecoratoryielded the expected output, False otherwise.- Return type:
bool