pub enum DecayStrategy {
Exponential,
Linear,
StepFunction,
PowerLaw,
Logarithmic,
Flat,
}Expand description
Strategy for importance decay
Variants§
Exponential
Linear
StepFunction
PowerLaw
Power-law decay: I(t) = I₀ / (1 + k·t)^α — natural for episodic memories
Logarithmic
Logarithmic decay: I(t) = I₀ · (1 − log₂(1 + t/h)) — slow for semantic knowledge
Flat
Flat (no decay) — for procedural/skill memories
Trait Implementations§
Source§impl Clone for DecayStrategy
impl Clone for DecayStrategy
Source§fn clone(&self) -> DecayStrategy
fn clone(&self) -> DecayStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 DecayStrategy
impl Debug for DecayStrategy
Source§impl Default for DecayStrategy
impl Default for DecayStrategy
Source§fn default() -> DecayStrategy
fn default() -> DecayStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecayStrategy
impl<'de> Deserialize<'de> for DecayStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DecayStrategy
impl PartialEq for DecayStrategy
Source§impl Serialize for DecayStrategy
impl Serialize for DecayStrategy
impl Copy for DecayStrategy
impl StructuralPartialEq for DecayStrategy
Auto Trait Implementations§
impl Freeze for DecayStrategy
impl RefUnwindSafe for DecayStrategy
impl Send for DecayStrategy
impl Sync for DecayStrategy
impl Unpin for DecayStrategy
impl UnsafeUnpin for DecayStrategy
impl UnwindSafe for DecayStrategy
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