pub struct BalancedRecallState {
pub relevance: BetaPosterior,
pub salience: BetaPosterior,
pub temporal: BetaPosterior,
pub entity_posteriors: EntityPosteriors,
pub total_events: u64,
pub exploration_epoch: u64,
}Expand description
Live Beta-posterior state for the balanced-recall-v1 profile.
Fields§
§relevance: BetaPosterior§salience: BetaPosterior§temporal: BetaPosterior§entity_posteriors: EntityPosteriors§total_events: u64§exploration_epoch: u64Implementations§
Source§impl BalancedRecallState
impl BalancedRecallState
pub fn new(entity_capacity: usize) -> Self
pub fn reset_posteriors(&mut self)
pub fn to_snapshot(&self) -> BalancedRecallSnapshot
pub fn from_snapshot( snapshot: BalancedRecallSnapshot, entity_capacity: usize, ) -> Self
Sourcepub fn apply_signal(&mut self, signal: &BrainSignal)
pub fn apply_signal(&mut self, signal: &BrainSignal)
Apply a brain signal to update posteriors in place. This is the core profile update logic — pure, deterministic, no IO.
Auto Trait Implementations§
impl Freeze for BalancedRecallState
impl RefUnwindSafe for BalancedRecallState
impl Send for BalancedRecallState
impl Sync for BalancedRecallState
impl Unpin for BalancedRecallState
impl UnsafeUnpin for BalancedRecallState
impl UnwindSafe for BalancedRecallState
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more