csm-core-lib 0.3.8

Hyperdimensional computing kernel for chaotic_semantic_memory
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(feature = "chaotic-hashing")]
//! 2D Sine-Logistic Hyperchaotic Map (2D-SLHM) re-export.

pub use csm_chaos::Slhm2d;

#[cfg(test)]
mod tests {
    #![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
    use super::*;

    #[test]
    fn test_slhm2d_reexport() {
        let mut map = Slhm2d::new(0.123, 0.456, 0.99);
        let v = map.next_value();
        assert!(v >= 0.0 && v < 1.0);
    }
}