pub struct Scenario {
pub name: String,
pub data: Dataset,
pub windows: Vec<Window>,
pub costs: CostModel,
}Expand description
A named bundle of a dataset, the windows to evaluate over it, and the cost model — so “run my agent through the crisis suite under worst-case execution” is one object rather than three loose arguments.
Fields§
§name: String§data: Dataset§windows: Vec<Window>§costs: CostModelImplementations§
Source§impl Scenario
impl Scenario
Sourcepub fn full(name: impl Into<String>, data: Dataset, costs: CostModel) -> Self
pub fn full(name: impl Into<String>, data: Dataset, costs: CostModel) -> Self
A single full window over data (after a [WARMUP]-bar burn-in) under costs.
Sourcepub fn crisis_suite(seed: u64, profile: CostProfile) -> Vec<Scenario>
pub fn crisis_suite(seed: u64, profile: CostProfile) -> Vec<Scenario>
The built-in crisis suite (flash crash + whipsaw) under the given execution profile — each scenario tests survival, not calm-market return.
Auto Trait Implementations§
impl Freeze for Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnsafeUnpin for Scenario
impl UnwindSafe for Scenario
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