ruthril

Crates.ioruthril
lib.rsruthril
version0.1.2
created_at2025-10-25 06:48:03.991331+00
updated_at2025-10-25 07:16:14.863302+00
descriptionA powerful AI/ML framework is under development
homepagehttps://github.com/Ruthril/ruthril
repositoryhttps://github.com/Ruthril/ruthril
max_upload_size
id1899803
size22,823
Samuel Javier Casas Ceballos (samcasas)

documentation

https://docs.rs/ruthril

README

Ruthril Framework(BETA)

A powerful AI/ML framework for Rust is under development...

🚀 Features

  • 📊 Statistical Analysis - Mean, variance, standard deviation calculations

  • 🛠️ CLI Tools - Project scaffolding and management

📦 Installation

Add to your Cargo.toml:

[dependencies]
ruthril = "0.1.1"

🏃‍♂️ Quick Start

Using Statistics

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);
    }
}

Creating New Projects

Install the CLI tool:

cargo install ruthril

Create a new AI project:

ruthril new-project my_ai_project
cd my_ai_project
cargo run

📚 API Reference

Statistics Module

  • Statistics::mean(&[f64]) -> Option<f64> - Calculate arithmetic mean
  • Statistics::variance(&[f64]) -> Option<f64> - Calculate sample variance
  • Statistics::std_deviation(&[f64]) -> Option<f64> - Calculate standard deviation

🛠️ Development

git clone https://github.com/Ruthril/ruthril.git
cd ruthril
cargo build
cargo test

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 0

cargo fmt