Struct DefaultAnalytics

Source
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: PeltConfig

Implementations§

Source§

impl DefaultAnalytics

Source

pub fn new() -> Self

Create with default configuration.

Source

pub fn with_pelt_config(pelt_config: PeltConfig) -> Self

Create with custom PELT configuration.

Source

pub fn has_neural_ode(&self) -> bool

Whether a Neural ODE model is loaded.

Trait Implementations§

Source§

impl AnalyticsBackend for DefaultAnalytics

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.
Source§

impl Default for DefaultAnalytics

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.