Skip to main content

AnalysisFeatureAdder

Trait AnalysisFeatureAdder 

Source
pub trait AnalysisFeatureAdder<F> {
    // Required methods
    fn get_column_headers(&self) -> &[&str];
    fn analysis_dependencies(&self) -> Vec<AnalysisDependency>;
    fn add_features(
        &self,
        context: &AnalysisFeatureContext<'_>,
        processor: &dyn ProcessorView,
        frame: &Frame,
        frame_count: usize,
        current_time: f32,
        vector: &mut Vec<F>,
    ) -> SubtrActorResult<()>;

    // Provided method
    fn features_added(&self) -> usize { ... }
}
Expand description

Object-safe interface for frame-level features backed by the analysis graph.

Required Methods§

Source

fn get_column_headers(&self) -> &[&str]

Source

fn analysis_dependencies(&self) -> Vec<AnalysisDependency>

Source

fn add_features( &self, context: &AnalysisFeatureContext<'_>, processor: &dyn ProcessorView, frame: &Frame, frame_count: usize, current_time: f32, vector: &mut Vec<F>, ) -> SubtrActorResult<()>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, G, const N: usize> AnalysisFeatureAdder<F> for DynamicAnalysisFeatureAdder<F, G, N>
where F: Send + Sync + 'static, G: Fn(&AnalysisFeatureContext<'_>, &dyn ProcessorView, &Frame, usize, f32) -> SubtrActorResult<[F; N]> + Send + Sync + 'static,