An open API service indexing awesome lists of open source software.

https://github.com/haschka/simple-stat-cli-tools

Provides Mean / Stddev / Histrogram and in the future more from the cli
https://github.com/haschka/simple-stat-cli-tools

command-line-tools data-science statistics

Last synced: 9 months ago
JSON representation

Provides Mean / Stddev / Histrogram and in the future more from the cli

Awesome Lists containing this project

README

          

# simple-stat-cli-tools
Provides Mean / Stddev / Histrogram / Random Sampling
and more from the cli

compile with:
```
gcc -O2 -march=native histogram.c -o histogram
gcc -O2 -march=native mean.c -o mean
gcc -O2 -march=native stddev.c -o stddev
gcc -O2 -march=native median.c -o median
gcc -O2 -march=native minimum.c -o minimum
gcc -O2 -march=native maximum.c -o maximum
gcc -O2 -march=native random_sample.c -o random_sample
```
use like:
```
echo "13 43 13 34 31 22 30" | ./histgroam 3
```
to get a histogram of three bins for the values sent.
```
echo "13 43 13 34 31 22 30" | ./mean
```
to get the mean of the numbers.
```
echo "13 43 13 34 31 22 30" | ./median
```
to obtain the median of the numbers.
```
echo "13 43 13 34 31 22 30" | ./stddev
```
to obtain the standard deviation of the numbers.
```
echo "13 43 13 34 31 22 30" | ./minimum
```
to obtain the minimum of the numbers.
```
echo "13 43 13 34 31 22 30" | ./maximum
```
to obtain the maximum of the numbers.
```
echo "مرحبا Bonjour GutenTag Buongiorno" | ./randomsample 42 2
```
to obtain two random greetings from the four provided,
under the given seed 42.

You can yield numbers/objects to the tools that are separated by newlines,
tabs or spaces.
Gentoo users might install the tools with the provided ebuild:
`stattools-1.ebuild`