| Crates.io | icentral-stats |
| lib.rs | icentral-stats |
| version | 0.1.0 |
| created_at | 2025-04-04 20:55:55.973746+00 |
| updated_at | 2025-04-04 20:55:55.973746+00 |
| description | Provides statistical analysis utilities for performance metrics, including mean, median, and standard deviation computations on floating-point and duration datasets. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620740 |
| size | 50,659 |
icentral-stats is a Rust crate providing statistical analysis utilities tailored for performance measurements. It facilitates the extraction of central tendency and variability metrics such as mean, median, and standard deviation. This crate is especially useful when handling timing data in durations or floating-point formats.
f64 values, providing quick insights into dataset characteristics including mean, standard deviation, and median.use icentral_stats::{SpeedupStats, SimpleStats};
use std::time::Duration;
let mut float_data: Vec<f64> = vec![2.0, 3.0, 5.0, 7.0];
let speedup_stats = SpeedupStats::from(&mut float_data);
println!("SpeedupStats: {:?}", speedup_stats);
let mut duration_data: Vec<Duration> = vec![Duration::new(5, 0), Duration::new(10, 0)];
let simple_stats = SimpleStats::from(&mut duration_data);
println!("SimpleStats: {:?}", simple_stats);
The icentral-stats library is designed to address the core needs of performance analysis, where both floating-point and duration data types are involved.
Add the following to your Cargo.toml:
[dependencies]
icentral-stats = "0.1.0"
This README.md file was generated by an AI model and may not be 100% accurate; however, it should be pretty good.
This crate is in the process of being translated from c++ to rust. Currently, it still needs exhaustive testing. It is likely there currently exist many glitches which need to be fixed before proper usage. This crate is based on the original icentral program developed by Fuad Jamor. Please see the following repository for details: https://github.com/fjamour/icentral.
For progress updates, see the workspacer rust project.