Trait fetish_lib::feature_collection::FeatureCollection[][src]

pub trait FeatureCollection {
    fn get_in_dimensions(&self) -> usize;
fn get_dimension(&self) -> usize;
fn get_features(&self, in_vec: ArrayView1<'_, f32>) -> Array1<f32>;
fn get_jacobian(&self, in_vec: ArrayView1<'_, f32>) -> Array2<f32>; fn get_features_mat(&self, in_mat: ArrayView2<'_, f32>) -> Array2<f32> { ... } }

Required methods

fn get_in_dimensions(&self) -> usize[src]

Expand description

Return the number of input dimensions

fn get_dimension(&self) -> usize[src]

Expand description

Return the number of dimensions in the output of get_features

fn get_features(&self, in_vec: ArrayView1<'_, f32>) -> Array1<f32>[src]

Expand description

Given a vector in the input space of this feature space, return the vector of features for this feature space

fn get_jacobian(&self, in_vec: ArrayView1<'_, f32>) -> Array2<f32>[src]

Expand description

Given a vector in the input space of this feature space, return the Jacobian matrix for the feature vector at that point in the format f x s, for s the input space size

Provided methods

fn get_features_mat(&self, in_mat: ArrayView2<'_, f32>) -> Array2<f32>[src]

Expand description

Given a matrix whose rows are each input vectors, yields a new matrix where every row of the output is the featurized version of the corresponding input vector

Implementors