Contents:
distance_to_sorted_array()
Spearman footrule metric to the sorted array.
xs (ndarray) – The array.
ndarray
The distance
int
Examples
>>> distance_to_sorted_array(np.array([1, 0, 2])) 2 >>> distance_to_sorted_array(np.array([4, 1, 7, 6, 0, 8, 2, 3, 5])) 30