Skip to main content

SequenceMatchingAlgorithm

Trait SequenceMatchingAlgorithm 

Source
pub trait SequenceMatchingAlgorithm:
    Debug
    + Send
    + Sync {
    // Required methods
    fn match_sequence(
        &self,
        sequence: &TemporalSequence,
        data: &[TemporalDataPoint],
    ) -> f64;
    fn name(&self) -> &str;
}
Expand description

Trait for sequence matching algorithms

Required Methods§

Source

fn match_sequence( &self, sequence: &TemporalSequence, data: &[TemporalDataPoint], ) -> f64

Match temporal sequences

Source

fn name(&self) -> &str

Algorithm name

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§