Struct Tally
struct Tally {
full: bool,
sum: f64,
legs: GapLegs,
values: Vec<f64>,
weights: Vec<f64>,
weighted_gap: Vec<f64>,
samples: Vec<Vec<(f64, f64)>>,
}Expand description
One scenario’s running sums over the paths.
Fields§
§full: bool§sum: f64§legs: GapLegs§values: Vec<f64>§weights: Vec<f64>§weighted_gap: Vec<f64>§samples: Vec<Vec<(f64, f64)>>Implementations§
§impl Tally
impl Tally
fn new(rows: usize, full: bool) -> Self
fn add(&mut self, outcome: PathOutcome)
fn finish(self, prep: &Prepared, settings: &SimulationSettings) -> SimulatedGap
Auto Trait Implementations§
impl Freeze for Tally
impl RefUnwindSafe for Tally
impl Send for Tally
impl Sync for Tally
impl Unpin for Tally
impl UnsafeUnpin for Tally
impl UnwindSafe for Tally
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