sts

command module
v0.0.0-...-c97d57c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 12 Imported by: 0

README

sts - Stats

Usage

NAME:
   sts - pronounced 'stats'

   Generate simple stats for a stream of numbers

USAGE:
   seq 1 10 | sts
   sts numbers.txt
   seq 1 10 | sts summary
   seq 1 10 | sts s


COMMANDS:
   summary, s  (default) prints summary statistics for the dataset

GLOBAL OPTIONS:
   --help, -h  show this help message

Example

Input
$ seq 1 10 > numbers.txt
$ cat numbers.txt
1
2
3
4
5
6
7
8
9
10

Output
$ sts numbers.txt
count: 10
min:   1
max:   10
sum:   55

mean:   5.5
stddev: 3.0276503540974917

q1:     3
median: 5
q3:     8

or

cat numbers.txt | sts
count: 10
min:   1
max:   10
sum:   55

mean:   5.5
stddev: 3.0276503540974917

q1:     3
median: 5
q3:     8

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL