pub struct StandardConfidenceScheduler { /* private fields */ }Expand description
Standard implementation of confidence scheduler
Implementations§
Source§impl StandardConfidenceScheduler
impl StandardConfidenceScheduler
pub fn new(config: ConfidenceSchedulerConfig) -> Self
pub fn with_default_config() -> Self
Sourcepub fn calculate_decay(confidence: f32, hours: f32) -> f32
pub fn calculate_decay(confidence: f32, hours: f32) -> f32
Calculate decayed confidence
Sourcepub fn calculate_age_hours(created_at_ms: i64, now_ms: i64) -> f32
pub fn calculate_age_hours(created_at_ms: i64, now_ms: i64) -> f32
Calculate age in hours from a timestamp
Trait Implementations§
Source§impl ConfidenceScheduler for StandardConfidenceScheduler
impl ConfidenceScheduler for StandardConfidenceScheduler
Source§fn apply_decay_to_capsule(&self, capsule_confidence: f32, age_hours: f32) -> f32
fn apply_decay_to_capsule(&self, capsule_confidence: f32, age_hours: f32) -> f32
Apply confidence decay to a single capsule
Source§fn boost_confidence(&self, current: f32) -> f32
fn boost_confidence(&self, current: f32) -> f32
Boost confidence on successful reuse
Source§fn should_quarantine(&self, confidence: f32) -> bool
fn should_quarantine(&self, confidence: f32) -> bool
Check if confidence is below minimum threshold
Auto Trait Implementations§
impl Freeze for StandardConfidenceScheduler
impl RefUnwindSafe for StandardConfidenceScheduler
impl Send for StandardConfidenceScheduler
impl Sync for StandardConfidenceScheduler
impl Unpin for StandardConfidenceScheduler
impl UnsafeUnpin for StandardConfidenceScheduler
impl UnwindSafe for StandardConfidenceScheduler
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