pub struct Estimate {
pub mean: f64,
pub standard_error: f64,
pub samples: u64,
}Expand description
What a Monte Carlo run came back with.
Fields§
§mean: f64The sample mean.
standard_error: f64s/√N: how far the mean is likely to be from the truth, not how spread the samples are.
samples: u64How many samples went into it. Quoted because a mean without one is not a measurement.
Implementations§
Source§impl Estimate
impl Estimate
Sourcepub fn standard_deviation(&self) -> f64
pub fn standard_deviation(&self) -> f64
The sample standard deviation — the spread of the samples themselves.
Distinct from standard_error, and confusing the two is the
most common way to state a Monte Carlo result wrongly: the spread does not shrink with
more samples and the error on the mean does.
Trait Implementations§
impl Copy for Estimate
impl StructuralPartialEq for Estimate
Auto Trait Implementations§
impl Freeze for Estimate
impl RefUnwindSafe for Estimate
impl Send for Estimate
impl Sync for Estimate
impl Unpin for Estimate
impl UnsafeUnpin for Estimate
impl UnwindSafe for Estimate
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