pub struct ScoringWeights {
pub alpha: f64,
pub beta: f64,
pub gamma: f64,
pub delta: f64,
pub decay_rate: f64,
}Expand description
Weights for composite memory scoring (Park et al., 2023).
alpha * recency + beta * importance + gamma * relevance + delta * strength
Fields§
§alpha: f64Weight for recency component (default: 0.25).
beta: f64Weight for importance component (default: 0.25).
gamma: f64Weight for relevance component (default: 0.3).
delta: f64Weight for strength component (default: 0.2).
decay_rate: f64Exponential decay rate for recency (default: 0.01, ~69h half-life).
Trait Implementations§
Source§impl Clone for ScoringWeights
impl Clone for ScoringWeights
Source§fn clone(&self) -> ScoringWeights
fn clone(&self) -> ScoringWeights
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 ScoringWeights
impl Debug for ScoringWeights
Auto Trait Implementations§
impl Freeze for ScoringWeights
impl RefUnwindSafe for ScoringWeights
impl Send for ScoringWeights
impl Sync for ScoringWeights
impl Unpin for ScoringWeights
impl UnsafeUnpin for ScoringWeights
impl UnwindSafe for ScoringWeights
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