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 Chebyshev-Logistic Hyperchaotic Map re-export.

pub use csm_chaos::ChebyshevLogistic2d;

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

    #[test]
    fn test_chebyshev_logistic_reexport() {
        let mut map = ChebyshevLogistic2d::new(0.123, -0.456, 4.0, 4);
        let v = map.next_value();
        assert!(v >= 0.0 && v < 1.0);
    }
}