| Crates.io | ruthril |
| lib.rs | ruthril |
| version | 0.1.2 |
| created_at | 2025-10-25 06:48:03.991331+00 |
| updated_at | 2025-10-25 07:16:14.863302+00 |
| description | A powerful AI/ML framework is under development |
| homepage | https://github.com/Ruthril/ruthril |
| repository | https://github.com/Ruthril/ruthril |
| max_upload_size | |
| id | 1899803 |
| size | 22,823 |
A powerful AI/ML framework for Rust is under development...
📊 Statistical Analysis - Mean, variance, standard deviation calculations
🛠️ CLI Tools - Project scaffolding and management
Add to your Cargo.toml:
[dependencies]
ruthril = "0.1.1"
use ruthril::Statistics;
fn main() {
let data = vec![1.0, 2.0, 3.0, 4.0, 5.0];
// Calculate mean
if let Some(mean) = Statistics::mean(&data) {
println!("Mean: {}", mean); // Output: Mean: 3
}
// Calculate standard deviation
if let Some(std_dev) = Statistics::std_deviation(&data) {
println!("Standard Deviation: {}", std_dev);
}
// Calculate variance
if let Some(variance) = Statistics::variance(&data) {
println!("Variance: {}", variance);
}
}
Install the CLI tool:
cargo install ruthril
Create a new AI project:
ruthril new-project my_ai_project
cd my_ai_project
cargo run
Statistics::mean(&[f64]) -> Option<f64> - Calculate arithmetic meanStatistics::variance(&[f64]) -> Option<f64> - Calculate sample varianceStatistics::std_deviation(&[f64]) -> Option<f64> - Calculate standard deviationgit clone https://github.com/Ruthril/ruthril.git
cd ruthril
cargo build
cargo test
This project is licensed under the MIT License - see the LICENSE file for details.