cmac_rust 0.1.1

CMAC (Cerebellar Model Articulation Controller) utilities for imputing missing floating-point values
Documentation

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.