pub struct SalienceState {
pub inhibitions: Vec<InhibitionEntry>,
}Expand description
A salience network állapota: inhibíciós maszk + szűrés.
Fields§
§inhibitions: Vec<InhibitionEntry>Implementations§
Source§impl SalienceState
impl SalienceState
Sourcepub fn load_or_init(output_dir: &Path) -> Self
pub fn load_or_init(output_dir: &Path) -> Self
Betöltés SAL1 file-ból, vagy üres init.
Sourcepub fn compute_salience(
&self,
emotional_delta: f32,
insight_score: f32,
recency_factor: f32,
topic_hash: u64,
) -> f32
pub fn compute_salience( &self, emotional_delta: f32, insight_score: f32, recency_factor: f32, topic_hash: u64, ) -> f32
Salience score kiszámítása adott blokkra. Alap = emotional_delta × insight_score × recency_factor Ezt csökkenti a téma inhibíciója.
Sourcepub fn topic_hash(text: &str) -> u64
pub fn topic_hash(text: &str) -> u64
Kompakt hash egy szövegből (használható topic_hash-ként).
Auto Trait Implementations§
impl Freeze for SalienceState
impl RefUnwindSafe for SalienceState
impl Send for SalienceState
impl Sync for SalienceState
impl Unpin for SalienceState
impl UnsafeUnpin for SalienceState
impl UnwindSafe for SalienceState
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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