pub struct TemporalLeadPredictor { /* private fields */ }Expand description
Temporal lead predictor - computes solutions before inputs arrive
Implementations§
Source§impl TemporalLeadPredictor
impl TemporalLeadPredictor
pub fn new(horizon_ns: u64, history_size: usize) -> Self
Sourcepub fn predict_future(&mut self, current_state: Vec<f64>) -> Vec<f64>
pub fn predict_future(&mut self, current_state: Vec<f64>) -> Vec<f64>
Predict future state using extrapolation and pattern matching
Sourcepub fn temporal_advantage_ns(&self, distance_km: f64) -> i64
pub fn temporal_advantage_ns(&self, distance_km: f64) -> i64
Calculate temporal advantage in nanoseconds
Sourcepub fn verify_prediction(&self, predicted: &[f64], actual: &[f64]) -> f64
pub fn verify_prediction(&self, predicted: &[f64], actual: &[f64]) -> f64
Verify prediction accuracy against actual data
Auto Trait Implementations§
impl Freeze for TemporalLeadPredictor
impl RefUnwindSafe for TemporalLeadPredictor
impl Send for TemporalLeadPredictor
impl Sync for TemporalLeadPredictor
impl Unpin for TemporalLeadPredictor
impl UnwindSafe for TemporalLeadPredictor
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.