cmac_rust

Crates.iocmac_rust
lib.rscmac_rust
version0.1.1
created_at2025-11-15 13:06:40.84893+00
updated_at2025-11-17 06:26:48.059857+00
descriptionCMAC (Cerebellar Model Articulation Controller) utilities for imputing missing floating-point values
homepagehttps://github.com/Hydrocarbons-ldai/cmac_rust
repositoryhttps://github.com/Hydrocarbons-ldai/cmac_rust
max_upload_size
id1934323
size22,496
Raskutin Sergey (BadWolf1st)

documentation

https://docs.rs/cmac_rust

README

cmac_rust

CMAC (Cerebellar Model Articulation Controller) utilities for imputing missing f64 observations that are marked as NaN values.

Features

  • Predict missing samples in f64 sequences via CMAC receptive fields.
  • Configurable learning rate and epoch count for simple experimentation.
  • Ergonomic Cmac type re-exported as CMAC for backward compatibility.
  • Ships with unit tests, doctests, and an executable example for quick checks.

Installation

Add the crate to your Cargo.toml:

cmac_rust = "0.1"

Quick Start

use cmac_rust::Cmac;
use std::f64;

let data = vec![1.0, f64::NAN, 3.0, f64::NAN, 5.0];
let mut cmac = Cmac::new(data, 2);
let imputed = cmac.impute(0.5, 4);

assert!(!imputed[1].is_nan());
assert!(!imputed[3].is_nan());

Examples

Run the bundled example to see the imputer in action:

cargo run --example impute

Documentation

You can find the API documentation on docs.rs.

Contributing

Contributions are welcome! Please open issues or pull requests on GitHub.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt