[−][src]Trait rstats::Vecu8
Minimal support also for Vecu8
Required methods
fn smult(self, s: f64) -> Vec<f64>
Scalar multiplication with a vector
fn sadd(self, s: f64) -> Vec<f64>
Scalar addition to vector
fn dotp(self, v: &[f64]) -> f64
Scalar product of two vectors
fn vmagsq(self) -> f64
Vector magnitude squared (sum of squares)
fn varc(self, v: &[f64]) -> f64
Area proportional to the swept arc
fn vdist(self, v: &[f64]) -> f64
Euclidian distance
Implementations on Foreign Types
impl<'_> Vecu8 for &'_ [u8]
[src]
fn smult(self, s: f64) -> Vec<f64>
[src]
Scalar multiplication of a vector, creates new vec
fn sadd(self, s: f64) -> Vec<f64>
[src]
Scalar addition to a vector, creates new vec
fn dotp(self, v: &[f64]) -> f64
[src]
Scalar product.
Must be of the same length - no error checking (for speed)
fn vmagsq(self) -> f64
[src]
Vector magnitude squared
fn varc(self, v: &[f64]) -> f64
[src]
Area of swept arc
fn vdist(self, v: &[f64]) -> f64
[src]
Euclidian distance between self u8 point and v: &f64.
Slightly faster than vsub followed by vmag, as both are done in one loop