pub enum Discretization {
LocalMoment,
Rounding,
Lower,
}Expand description
Discretization methods.
Variants§
LocalMoment
Local moment matching on the mean (mass dispersal with matched first moment, Klugman, Panjer & Willmot): every cell’s mass is split between its two end points so its mean is kept.
Rounding
Each point takes the mass within half a step of it.
Lower
Each cell’s mass moves to its left end, so the grid is a stochastic lower bound of the source.
Trait Implementations§
Source§impl Clone for Discretization
impl Clone for Discretization
Source§fn clone(&self) -> Discretization
fn clone(&self) -> Discretization
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 moreimpl Copy for Discretization
Source§impl Debug for Discretization
impl Debug for Discretization
impl Eq for Discretization
Source§impl PartialEq for Discretization
impl PartialEq for Discretization
impl StructuralPartialEq for Discretization
Auto Trait Implementations§
impl Freeze for Discretization
impl RefUnwindSafe for Discretization
impl Send for Discretization
impl Sync for Discretization
impl Unpin for Discretization
impl UnsafeUnpin for Discretization
impl UnwindSafe for Discretization
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