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
- Host: GitHub
- URL: https://github.com/haschka/simple-stat-cli-tools
- Owner: haschka
- License: gpl-3.0
- Created: 2025-05-23T13:44:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-02T09:36:11.000Z (12 months ago)
- Last Synced: 2025-07-02T10:42:44.113Z (12 months ago)
- Topics: command-line-tools, data-science, statistics
- Language: C
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`