pub struct StalenessSchedule {
pub k1: u64,
pub k2: u64,
pub lambda: f32,
}Expand description
Ornith-1.0 staleness schedule w(d_t).
Fields§
§k1: u64Ages <= k1 keep full weight 1.0.
k2: u64Ages > k2 are dropped (weight 0).
lambda: f32Exponential decay rate in the (k1, k2] band.
Implementations§
Trait Implementations§
Source§impl Clone for StalenessSchedule
impl Clone for StalenessSchedule
Source§fn clone(&self) -> StalenessSchedule
fn clone(&self) -> StalenessSchedule
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 StalenessSchedule
Source§impl Debug for StalenessSchedule
impl Debug for StalenessSchedule
Auto Trait Implementations§
impl Freeze for StalenessSchedule
impl RefUnwindSafe for StalenessSchedule
impl Send for StalenessSchedule
impl Sync for StalenessSchedule
impl Unpin for StalenessSchedule
impl UnsafeUnpin for StalenessSchedule
impl UnwindSafe for StalenessSchedule
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