Trait AnalyticsBackend

Source
pub trait AnalyticsBackend: Send + Sync {
    // Required methods
    fn predict(
        &self,
        trajectory: &[TemporalPoint],
        target_timestamp: i64,
    ) -> Result<TemporalPoint, AnalyticsError>;
    fn detect_changepoints(
        &self,
        trajectory: &[TemporalPoint],
        method: CpdMethod,
    ) -> Result<Vec<ChangePoint>, AnalyticsError>;
    fn velocity(
        &self,
        trajectory: &[TemporalPoint],
        timestamp: i64,
    ) -> Result<Vec<f32>, AnalyticsError>;
}
Expand description

Analytics backend for temporal analysis operations.

Provides prediction, change point detection, and differential calculus.

Required Methods§

Source

fn predict( &self, trajectory: &[TemporalPoint], target_timestamp: i64, ) -> Result<TemporalPoint, AnalyticsError>

Predict a future vector state using the learned trajectory model.

Source

fn detect_changepoints( &self, trajectory: &[TemporalPoint], method: CpdMethod, ) -> Result<Vec<ChangePoint>, AnalyticsError>

Detect change points in a trajectory.

Source

fn velocity( &self, trajectory: &[TemporalPoint], timestamp: i64, ) -> Result<Vec<f32>, AnalyticsError>

Compute the velocity vector at a given timestamp.

Implementors§