pub struct AttentionSystem { /* private fields */ }Expand description
Attention system
Implementations§
Source§impl AttentionSystem
impl AttentionSystem
pub fn new(config: &BrainConfig) -> Self
pub fn attend(&mut self, input: &[f64]) -> Result<Vec<f64>>
pub fn focus_on(&mut self, target: &[f64]) -> Result<()>
pub fn current_focus(&self) -> Vec<f64>
pub fn remember(&mut self, item: &[f64])
pub fn working_memory_contents(&self) -> Vec<Vec<f64>>
pub fn clear_working_memory(&mut self)
pub fn attention_strength(&self) -> f64
pub fn switch_mechanism(&mut self, m: AttentionType)
pub fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for AttentionSystem
impl RefUnwindSafe for AttentionSystem
impl Send for AttentionSystem
impl Sync for AttentionSystem
impl Unpin for AttentionSystem
impl UnwindSafe for AttentionSystem
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