Trait rstats::Vecf64[][src]

pub trait Vecf64<_T> {
    fn smultf64(self, s: f64) -> Vec<f64>;
fn vsubf64(self, v: &[f64]) -> Vec<f64>;
fn vsubunitf64(self, v: &[f64]) -> Vec<f64>;
fn vdistf64(self, v: &[f64]) -> f64;
fn vaddf64(self, v: &[f64]) -> Vec<f64>;
fn vdistsqf64(self, v: &[f64]) -> f64; }
Expand description

Vector algebra: methods operaing on one vector of generic end type and the second argument, which is a scalar or vector of f64 end type.

Required methods

Scalar multiplication by f64

Vector subtraction of &[f64]

Vectors difference unitised (done together for efficiency)

Euclidian distance to &[f64]

Adding &[f64]

Euclidian distance to &[f64] squared

Implementations on Foreign Types

scalar multiplication by f64

Vector subtraction of &[f64]

Vectors difference unitised (done together for efficiency)

Addition of &[f64] slice

Euclidian distance to &[f64]

Euclidian distance to &[f64] squared

Implementors