1 unstable release
new 0.1.0 | May 6, 2025 |
---|
#105 in Simulation
7KB
79 lines
wave-memory — geometric wave memory based on Leonov-like form dynamics
Overview
This library simulates wave propagation through an adaptive geometric medium (GeoForm). The form is initialized using a chaotic recursive sequence with memory, and it evolves over time based on the wave energy. This creates a primitive model of self-organizing spatial memory.
wave-memory
Wave-based geometric memory — this crate simulates how waves interact with an adaptive shape that evolves in response to energy. Inspired by recursive chaotic geometry (Leonov-style), the form becomes a primitive learning substrate.
Features
- Adaptive
GeoForm
structure - Wave propagation (
Wave
) with memory - Self-organizing shape evolution from wave activity
- Ideal for experimentation in cognition, geometry, and wave computing
Example
use wave_memory::{GeoForm, Wave};
fn main() {
let mut form = GeoForm::from_leonov(100, 123);
let mut wave = Wave::new(100, 50);
for _ in 0..100 {
wave.step(&form);
form.adapt(&wave.energy(), 0.1);
}
println!("Final shape point: {:.3}", form.data[50]);
}
License
MIT OR Apache-2.0
Dependencies
~435KB