pub trait PointSet<A> {
    // Required methods
    fn get_differences<S>(&self, point: &ArrayBase<S, Ix1>) -> Array2<A>
       where S: Data<Elem = A>,
             A: Float;
    fn get_distances<S>(&self, point: &ArrayBase<S, Ix1>) -> Array1<A>
       where S: Data<Elem = A>,
             A: Float;
}

Required Methods§

source

fn get_differences<S>(&self, point: &ArrayBase<S, Ix1>) -> Array2<A>where S: Data<Elem = A>, A: Float,

Computes the difference of each row to a given point (1D)

Examples
// Example template not implemented for trait functions
source

fn get_distances<S>(&self, point: &ArrayBase<S, Ix1>) -> Array1<A>where S: Data<Elem = A>, A: Float,

Computes the Eucledean distance of each row to a given point (1D)

Examples
// Example template not implemented for trait functions

Implementations on Foreign Types§

source§

impl<A, T> PointSet<A> for ArrayBase<T, Ix2>where T: Data<Elem = A>, A: Float,

source§

fn get_differences<S>(&self, point: &ArrayBase<S, Ix1>) -> Array2<A>where S: Data<Elem = A>,

source§

fn get_distances<S>(&self, point: &ArrayBase<S, Ix1>) -> Array1<A>where S: Data<Elem = A>, A: Float,

Implementors§