FeatureCollection

Trait FeatureCollection 

Source
pub trait FeatureCollection {
    // Required methods
    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>;

    // Provided method
    fn get_features_mat(&self, in_mat: ArrayView2<'_, f32>) -> Array2<f32> { ... }
}

Required Methods§

Source

fn get_in_dimensions(&self) -> usize

Return the number of input dimensions

Source

fn get_dimension(&self) -> usize

Return the number of dimensions in the output of get_features

Source

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

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

Source

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

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§

Source

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

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§