Average is a simple and fast command-line Perl utility for calculating basic statistics on a list of numbers (one number per line). It works as a traditional Unix filter and can be used as part of those greatly useful chains of piped commands.

It calculates average (arithmetic mean), standard deviation, median, total sum, minimum and maximum values present, and shows the number of processed numbers.

Entry can by a text file (any column can be specified, default is the first) or directly in the terminal if Average is run without specifying a file -- in which case, input can be terminated by pressing Ctrl-D.

It is possible to choose the output of a single statistic (just the value, no labels), instead of the fully detailed output (default).

Features

  • number of decimal places specifiable by user
  • any column in the input can be used as input
  • output in scientific notation if desired
  • arithmetic mean
  • standard deviation
  • median
  • reports minimum and maximum values encountered
  • reports total sum
  • reports total number of numbers processed
  • skips lines starting with #, unless specified by user
  • numbers can be entered from a file or directly in terminal (end input with Ctrl-D)

Project Activity

See All Activity >

License

GNU General Public License version 2.0 (GPLv2)

Follow Average

Average Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Average!

Additional Project Details

Languages

English

User Interface

Command-line

Programming Language

Perl

Related Categories

Perl Mathematics Software, Perl Calculators

Registered

2008-12-01