pub struct EdgePlasticity {
pub original_weight: Vec<FiniteF32>,
pub current_weight: Vec<FiniteF32>,
pub strengthen_count: Vec<u16>,
pub weaken_count: Vec<u16>,
pub ltp_applied: Vec<bool>,
pub ltd_applied: Vec<bool>,
pub last_used_query: Vec<u32>,
}Expand description
Per-edge plasticity metadata. Parallel arrays alongside CSR edges.
Fields§
§original_weight: Vec<FiniteF32>Original weight at graph construction.
current_weight: Vec<FiniteF32>Current weight (canonical — CSR AtomicWeights mirror this).
strengthen_count: Vec<u16>Number of times this edge was strengthened.
weaken_count: Vec<u16>Number of times this edge was weakened.
ltp_applied: Vec<bool>Whether LTP (long-term potentiation) was applied.
ltd_applied: Vec<bool>Whether LTD (long-term depression) was applied.
last_used_query: Vec<u32>Query index at which this edge was last used.
Implementations§
Source§impl EdgePlasticity
impl EdgePlasticity
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
Auto Trait Implementations§
impl Freeze for EdgePlasticity
impl RefUnwindSafe for EdgePlasticity
impl Send for EdgePlasticity
impl Sync for EdgePlasticity
impl Unpin for EdgePlasticity
impl UnsafeUnpin for EdgePlasticity
impl UnwindSafe for EdgePlasticity
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