| Crates.io | cmac_rust |
| lib.rs | cmac_rust |
| version | 0.1.1 |
| created_at | 2025-11-15 13:06:40.84893+00 |
| updated_at | 2025-11-17 06:26:48.059857+00 |
| description | CMAC (Cerebellar Model Articulation Controller) utilities for imputing missing floating-point values |
| homepage | https://github.com/Hydrocarbons-ldai/cmac_rust |
| repository | https://github.com/Hydrocarbons-ldai/cmac_rust |
| max_upload_size | |
| id | 1934323 |
| size | 22,496 |
CMAC (Cerebellar Model Articulation Controller) utilities for imputing missing f64
observations that are marked as NaN values.
f64 sequences via CMAC receptive fields.Cmac type re-exported as CMAC for backward compatibility.Add the crate to your Cargo.toml:
cmac_rust = "0.1"
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());
Run the bundled example to see the imputer in action:
cargo run --example impute
You can find the API documentation on docs.rs.
Contributions are welcome! Please open issues or pull requests on GitHub.
Licensed under either of
at your option.
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.