Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakeroggenbuck/statistical-tests-rs
Statistical Tests for Rust
https://github.com/jakeroggenbuck/statistical-tests-rs
math statistics
Last synced: 5 days ago
JSON representation
Statistical Tests for Rust
- Host: GitHub
- URL: https://github.com/jakeroggenbuck/statistical-tests-rs
- Owner: JakeRoggenbuck
- Created: 2022-05-22T17:49:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-22T18:36:16.000Z (over 2 years ago)
- Last Synced: 2024-10-14T11:48:15.763Z (about 1 month ago)
- Topics: math, statistics
- Language: Rust
- Homepage: https://crates.io/crates/statistical-tests-rs
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# statistical-tests-rs
Statistical Tests for Rust## Examples
```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);
}```
```rs
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](https://user-images.githubusercontent.com/35516367/169709203-5d375c96-257e-44ff-b400-67f392e820af.png)