A simple Rust command line program that calculates the trimmed mean. The program also outputs the arithmetic mean which serves for the user to see the differences between the two estimates of location. The program will output a YAML and a plot for the results.
1. Rustc >= 1.65.0
2. serde >= 1.0
3. serde_yaml >= 0.9.21
4. plotters >= 0.3.3
5. chrono >= 0.4.26
- Clone the repo
- cd into the clonned repo
- Run
cargo run
(be patient) in the program dir - Give a single value, press enter to supply the next one (it accepts 64-bit floating point types (f64))
- Press enter on an empty line to finish supplying values
- Give the number of the values you want to remove, and press enter (it accepts only unsigned ints)
- The program will supply the trimmed mean, the yaml with the io-s, and the plot for the trimmed mean
Should you need my help to run the program or want to know more about it, let me know: [email protected]
The program may be buggy, because this is my first ever Rust program. I will extend this in the future because it has potential, especially when learning about Rust multithreaded programming.