pub struct DiscretizationReport {
pub method: Discretization,
pub step: f64,
pub points: usize,
pub tail_mass: f64,
pub source_mean: f64,
pub grid_mean: f64,
}Expand description
How a continuous distribution was turned into a Grid, and the error
that introduced.
Fields§
§method: Discretization§step: f64§points: usize§tail_mass: f64Probability the source puts above the last grid point, S((n - 1)h).
Discretization lumps it onto the last point.
source_mean: f64Mean of the source distribution.
grid_mean: f64Mean of the grid.
Implementations§
Source§impl DiscretizationReport
impl DiscretizationReport
Sourcepub fn mean_error(&self) -> f64
pub fn mean_error(&self) -> f64
grid_mean - source_mean.
Trait Implementations§
Source§impl Clone for DiscretizationReport
impl Clone for DiscretizationReport
Source§fn clone(&self) -> DiscretizationReport
fn clone(&self) -> DiscretizationReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscretizationReport
impl Debug for DiscretizationReport
Source§impl PartialEq for DiscretizationReport
impl PartialEq for DiscretizationReport
impl StructuralPartialEq for DiscretizationReport
Auto Trait Implementations§
impl Freeze for DiscretizationReport
impl RefUnwindSafe for DiscretizationReport
impl Send for DiscretizationReport
impl Sync for DiscretizationReport
impl Unpin for DiscretizationReport
impl UnsafeUnpin for DiscretizationReport
impl UnwindSafe for DiscretizationReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more