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§
Sourcefn predict(
&self,
trajectory: &[TemporalPoint],
target_timestamp: i64,
) -> Result<TemporalPoint, AnalyticsError>
fn predict( &self, trajectory: &[TemporalPoint], target_timestamp: i64, ) -> Result<TemporalPoint, AnalyticsError>
Predict a future vector state using the learned trajectory model.
Sourcefn detect_changepoints(
&self,
trajectory: &[TemporalPoint],
method: CpdMethod,
) -> Result<Vec<ChangePoint>, AnalyticsError>
fn detect_changepoints( &self, trajectory: &[TemporalPoint], method: CpdMethod, ) -> Result<Vec<ChangePoint>, AnalyticsError>
Detect change points in a trajectory.
Sourcefn velocity(
&self,
trajectory: &[TemporalPoint],
timestamp: i64,
) -> Result<Vec<f32>, AnalyticsError>
fn velocity( &self, trajectory: &[TemporalPoint], timestamp: i64, ) -> Result<Vec<f32>, AnalyticsError>
Compute the velocity vector at a given timestamp.