pub enum TemporalQuery {
Show 15 variants
SnapshotKnn {
vector: Vec<f32>,
timestamp: i64,
k: usize,
},
RangeKnn {
vector: Vec<f32>,
start: i64,
end: i64,
k: usize,
alpha: f32,
},
Trajectory {
entity_id: u64,
filter: TemporalFilter,
},
Velocity {
entity_id: u64,
timestamp: i64,
},
Prediction {
entity_id: u64,
target_timestamp: i64,
},
ChangePointDetect {
entity_id: u64,
start: i64,
end: i64,
},
DriftQuant {
entity_id: u64,
t1: i64,
t2: i64,
top_n: usize,
},
Analogy {
entity_a: u64,
t1: i64,
t2: i64,
entity_b: u64,
t3: i64,
},
Counterfactual {
entity_id: u64,
change_point: i64,
},
GrangerCausality {
entity_a: u64,
entity_b: u64,
max_lag: usize,
significance: f64,
},
DiscoverMotifs {
entity_id: u64,
window: usize,
max_motifs: usize,
},
DiscoverDiscords {
entity_id: u64,
window: usize,
max_discords: usize,
},
TemporalJoin {
entity_a: u64,
entity_b: u64,
epsilon: f32,
window_us: i64,
},
CausalSearch {
vector: Vec<f32>,
k: usize,
filter: TemporalFilter,
alpha: f32,
query_timestamp: i64,
temporal_context: usize,
},
CohortDrift {
entity_ids: Vec<u64>,
t1: i64,
t2: i64,
top_n: usize,
},
}Expand description
A temporal query request.
Variants§
SnapshotKnn
k-nearest neighbors at a specific timestamp.
RangeKnn
k-nearest neighbors over a time range.
Fields
Trajectory
Full trajectory for an entity.
Velocity
Velocity at a given timestamp.
Prediction
Predict future vector state.
ChangePointDetect
Detect change points in a time window.
DriftQuant
Drift magnitude between two timestamps.
Fields
Analogy
Temporal analogy: “entity A at t1 is to A at t2 as B at t3 is to ?”
Fields
Counterfactual
Counterfactual trajectory analysis.
GrangerCausality
Granger causality test between two entities.
Fields
DiscoverMotifs
Discover recurring motifs in an entity’s trajectory.
Fields
DiscoverDiscords
Discover anomalous subsequences (discords) in an entity’s trajectory.
Fields
TemporalJoin
Temporal join: find convergence windows between two entities.
Fields
CausalSearch
Causal search: semantic kNN + temporal edge context (RFC-010).
Fields
§
filter: TemporalFilterTemporal filter.
CohortDrift
Cohort drift analysis across multiple entities.
Trait Implementations§
Source§impl Clone for TemporalQuery
impl Clone for TemporalQuery
Source§fn clone(&self) -> TemporalQuery
fn clone(&self) -> TemporalQuery
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemporalQuery
impl Debug for TemporalQuery
Source§impl<'de> Deserialize<'de> for TemporalQuery
impl<'de> Deserialize<'de> for TemporalQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TemporalQuery
impl RefUnwindSafe for TemporalQuery
impl Send for TemporalQuery
impl Sync for TemporalQuery
impl Unpin for TemporalQuery
impl UnwindSafe for TemporalQuery
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