pub struct LinearDecay;Expand description
Linear decay γ_j(t) = (T_j − t)/τ_j inside [T_{j−1}, T_j], clamped
to 1 before and 0 after. Matches the choice used in Lyashenko &
Mercurio (2020)’s mortgage example. The corresponding HJM-separable
shape function is g_j(t) = −γ_j'(t) = 1/τ_j on the interval.
Implementations§
Source§impl LinearDecay
impl LinearDecay
Trait Implementations§
Source§impl Clone for LinearDecay
impl Clone for LinearDecay
impl Copy for LinearDecay
Source§impl Debug for LinearDecay
impl Debug for LinearDecay
Source§impl Default for LinearDecay
impl Default for LinearDecay
Source§impl PartialEq for LinearDecay
impl PartialEq for LinearDecay
impl StructuralPartialEq for LinearDecay
Auto Trait Implementations§
impl Freeze for LinearDecay
impl RefUnwindSafe for LinearDecay
impl Send for LinearDecay
impl Sync for LinearDecay
impl Unpin for LinearDecay
impl UnsafeUnpin for LinearDecay
impl UnwindSafe for LinearDecay
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.