pub struct CounterfactualResult {
pub change_point: i64,
pub actual: Vec<(i64, Vec<f32>)>,
pub counterfactual: Vec<(i64, Vec<f32>)>,
pub divergence_curve: Vec<(i64, f32)>,
pub total_divergence: f64,
pub max_divergence_time: i64,
pub max_divergence_value: f32,
pub method: CounterfactualMethod,
}Expand description
Counterfactual analysis result.
Fields§
§change_point: i64The change point timestamp.
actual: Vec<(i64, Vec<f32>)>Actual post-change trajectory.
counterfactual: Vec<(i64, Vec<f32>)>Counterfactual (extrapolated pre-change) trajectory.
divergence_curve: Vec<(i64, f32)>Divergence between actual and counterfactual over time.
total_divergence: f64Total divergence (area under curve, via trapezoidal rule).
max_divergence_time: i64Timestamp of maximum divergence.
max_divergence_value: f32Maximum divergence value.
method: CounterfactualMethodMethod used for extrapolation.
Trait Implementations§
Source§impl Clone for CounterfactualResult
impl Clone for CounterfactualResult
Source§fn clone(&self) -> CounterfactualResult
fn clone(&self) -> CounterfactualResult
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 moreAuto Trait Implementations§
impl Freeze for CounterfactualResult
impl RefUnwindSafe for CounterfactualResult
impl Send for CounterfactualResult
impl Sync for CounterfactualResult
impl Unpin for CounterfactualResult
impl UnwindSafe for CounterfactualResult
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