pub struct MemorySystem { /* private fields */ }Expand description
Memory system
Implementations§
Source§impl MemorySystem
impl MemorySystem
pub fn new(config: &BrainConfig) -> Self
pub fn process(&mut self, content: &[f64]) -> Result<Vec<f64>>
pub fn encode(&mut self, content: &[f64], importance: f64) -> Result<()>
pub fn retrieve(&self, cue: &[f64]) -> Result<Option<Vec<f64>>>
pub fn consolidate_slow_wave(&mut self, output: &SleepOutput) -> Result<()>
pub fn consolidate_rem(&mut self, output: &SleepOutput) -> Result<()>
pub fn force_consolidation(&mut self) -> Result<usize>
pub fn consolidation_ratio(&self) -> f64
pub fn memory_count(&self) -> usize
pub fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for MemorySystem
impl RefUnwindSafe for MemorySystem
impl Send for MemorySystem
impl Sync for MemorySystem
impl Unpin for MemorySystem
impl UnwindSafe for MemorySystem
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