[−][src]Function rsalgo::base::discretization
pub fn discretization<T: PartialEq + Ord + Clone>(slice: &[T]) -> Vec<usize>
Build a vector with the rank of each item in origin vector.
Examples
let slice = [0, 1, 2, 1, 5]; assert_eq!([0, 1, 2, 1, 3], rsalgo::base::discretization(&slice).as_slice());