statistical-tests-rs

Crates.iostatistical-tests-rs
lib.rsstatistical-tests-rs
version0.1.2
sourcesrc
created_at2022-05-22 17:58:00.296367
updated_at2022-05-22 18:14:48.883327
descriptionStatistical Tests for Rust
homepagehttps://github.com/JakeRoggenbuck/statistical-tests-rs
repositoryhttps://github.com/JakeRoggenbuck/statistical-tests-rs
max_upload_size
id591364
size6,349
Jake Roggenbuck (JakeRoggenbuck)

documentation

README

statistical-tests-rs

use statistical_tests_rs::mean;

fn main() {
    // Get the mean of an array
    let array: [f64; 4] = [3.4, 6.7, 2.3, 1.1];
    let m = mean(&array);

    println!("{}", m);
}

use statistical_tests_rs::{GetStatistics, SampleStatistics};

fn main() {
    // Get the statistics of a sample
    let samp = SampleStatistics::from_array(&array);
    println!(
        "Sample Mean: {}, Sample Standard Deviation: {}",
        samp.sample_mean, samp.standard_error
    );
}

image

Commit count: 16

cargo fmt