pub struct DefaultAnalytics {
pelt_config: PeltConfig,
}Expand description
Default analytics backend using pure-Rust implementations.
When the torch-backend feature is enabled and a model is loaded,
prediction uses the Neural ODE. Otherwise falls back to linear extrapolation.
Fields§
§pelt_config: PeltConfigImplementations§
Source§impl DefaultAnalytics
impl DefaultAnalytics
Sourcepub fn with_pelt_config(pelt_config: PeltConfig) -> Self
pub fn with_pelt_config(pelt_config: PeltConfig) -> Self
Create with custom PELT configuration.
Sourcepub fn has_neural_ode(&self) -> bool
pub fn has_neural_ode(&self) -> bool
Whether a Neural ODE model is loaded.
Trait Implementations§
Source§impl AnalyticsBackend for DefaultAnalytics
impl AnalyticsBackend for DefaultAnalytics
Source§fn 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.
Source§fn 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.
Source§fn 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.
Auto Trait Implementations§
impl Freeze for DefaultAnalytics
impl RefUnwindSafe for DefaultAnalytics
impl Send for DefaultAnalytics
impl Sync for DefaultAnalytics
impl Unpin for DefaultAnalytics
impl UnwindSafe for DefaultAnalytics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more