Trait rstats::Indices [−][src]
pub trait Indices { fn revindex(self) -> Vec<usize>; fn unindex(self, v: &[f64]) -> Vec<f64>; fn ucorrelation(self, v: &[usize]) -> f64; }
Methods to manipulate indices of Vec
Required methods
fn revindex(self) -> Vec<usize>
[src]
Reverse index
fn unindex(self, v: &[f64]) -> Vec<f64>
[src]
Collects values from v
as per indices in self.
fn ucorrelation(self, v: &[usize]) -> f64
[src]
Pearson’s correlation coefficient of two slices, typically the ranks.
Implementations on Foreign Types
impl Indices for &[usize]
[src]
impl Indices for &[usize]
[src]fn revindex(self) -> Vec<usize>
[src]
fn revindex(self) -> Vec<usize>
[src]Constructs reversed (inverted) index, eg. from sort index to data ranks This is a symmetric operation, i.e. any even number of applications leads back to the original form.