labels_to_ranks

Function labels_to_ranks 

Source
pub fn labels_to_ranks(labels: &[usize]) -> Box<[usize]>
Expand description

Computes the ranks of a slice of labels by their natural order.