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 type

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.

Loading content...

Implementations on Foreign Types

impl Indices for &[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.

fn unindex(self, v: &[f64]) -> Vec<f64>[src]

Collects values from v in the order given by self index.

fn ucorrelation(self, v: &[usize]) -> f64[src]

Pearson’s correlation coefficient of a two $usize slices, typically the ranks. In which case this is the Spearman’s correlation, where the ranks have been computed previously.

Loading content...

Implementors

Loading content...