Home

Description

avg gives the average and standard deviation of a population. With the -N option, it produce the empirical cumulative distribution of the population. It takes a file in argument, formated as a single field of numbers.

Installation

 

wget https://depot.gukinet.com/projects/avg/src/avg-1.0.tar.gz
tar -xzf avg-1.0.tar.gz
cd avg-1.0
./configure
make
make install

 

Usage

 

# avg stat.dat                    
4.500000 2.432420
# avg -N stat.dat
# n=12, sum=54.000000, mu=4.500000, sd=2.432420
1.000000 0.000000
2.000000 0.090909
2.000000 0.181818
3.000000 0.272727
3.000000 0.363636
4.000000 0.454545
4.000000 0.545455
5.000000 0.636364
6.000000 0.727273
7.000000 0.818182
8.000000 0.909091
9.000000 1.000000