Module rstats::vecg[][src]

Traits

Methods to manipulate indices of Vec<usize> type.

Functions

Fast ranking of many T items, with only n*(log(n)+1) complexity. Ranking is done by inverting the sort index.
Sort index is in sorted order, giving data positions. Ranking is in data order, giving sorted order positions. Thus sort index and ranks are in an inverse relationship. They are easily converted by .invindex() (for: invert index).

Immutable sort. Returns new sorted vector (ascending or descending). Is a wrapper for mergesort. Passes the boolean flag ‘ascending’ onto ‘unindex’. Mergesort by itself always produces only an ascending index.