pub struct WaveGrid {
pub width: usize,
pub height: usize,
pub depth: usize,
pub noise_floor: f32,
/* private fields */
}Expand description
3D Wave Grid: 256×256×65536 (8-bit × 8-bit × 16-bit)
Fields§
§width: usizeGrid dimensions
height: usize§depth: usize§noise_floor: f32Noise floor threshold for adaptive filtering
Implementations§
Source§impl WaveGrid
impl WaveGrid
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new wave grid with standard MEM8 dimensions Grid is 256×256 (u8×u8 address space), Z (u16) is stored as temporal depth per cell
Sourcepub fn new_compact() -> Self
pub fn new_compact() -> Self
Create a compact wave grid (same as new() - grid is inherently compact) Grid: 256×256 = 65K cells, Z (u16) is temporal depth stored per cell
Sourcepub fn store(&mut self, x: u8, y: u8, z: u16, wave: MemoryWave)
pub fn store(&mut self, x: u8, y: u8, z: u16, wave: MemoryWave)
Store a memory wave at specific coordinates Z (temporal depth) is tracked in AnchoredMemory, not grid structure
Sourcepub fn get(&self, x: u8, y: u8, z: u16) -> Option<&Arc<MemoryWave>>
pub fn get(&self, x: u8, y: u8, z: u16) -> Option<&Arc<MemoryWave>>
Retrieve a memory wave at specific coordinates
Sourcepub fn calculate_interference(&self, x: u8, y: u8, z: u16, t: f32) -> f32
pub fn calculate_interference(&self, x: u8, y: u8, z: u16, t: f32) -> f32
Calculate interference pattern at a specific point Uses 3×3 neighborhood (X,Y plane)
Sourcepub fn adjust_noise_floor(&mut self, environmental_noise: f32)
pub fn adjust_noise_floor(&mut self, environmental_noise: f32)
Adaptive noise floor adjustment based on environmental conditions
Sourcepub fn active_memory_count(&self) -> usize
pub fn active_memory_count(&self) -> usize
Count active (non-decayed) memories
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaveGrid
impl RefUnwindSafe for WaveGrid
impl Send for WaveGrid
impl Sync for WaveGrid
impl Unpin for WaveGrid
impl UnsafeUnpin for WaveGrid
impl UnwindSafe for WaveGrid
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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