Trait indxvec::Indices [−][src]
pub trait Indices { fn invindex(self) -> Vec<usize>; fn unindex<T: Copy>(self, v: &[T], ascending: bool) -> Vec<T>; fn ucorrelation(self, v: &[usize]) -> f64; }
Expand description
Methods to manipulate indices of Vec<usize>
type.
Required methods
Collects f64 values from v
as per indices in self.
Implementations on Foreign Types
Inverts an index, eg. from sort index to data ranks. This is a symmetric operation: any even number of applications gives the original index, odd number gives the inverted form.
Collects values from v in the order given by self index.
When ascending is false, collects in descending order.
It is used here by msort for ascending or descending sort.