pub struct DecayTerm {
pub feature: ScoreFeature,
pub half_life: f64,
pub min_factor: f64,
}Expand description
Exponential decay 0.5^(age / half_life) over a distance or timestamp
feature, clamped to [min_factor, 1] and multiplied into the combined
score.
Fields§
§feature: ScoreFeature§half_life: f64§min_factor: f64Trait Implementations§
impl StructuralPartialEq for DecayTerm
Auto Trait Implementations§
impl Freeze for DecayTerm
impl RefUnwindSafe for DecayTerm
impl Send for DecayTerm
impl Sync for DecayTerm
impl Unpin for DecayTerm
impl UnsafeUnpin for DecayTerm
impl UnwindSafe for DecayTerm
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