Statistics::Welford(3pm)

Statistics::Welford3pm

Standard statistics using welford's algorithm

Usage

  my $stat = Statistics::Welford->new;
  while (1) {
        $stat->add(rand);
        ...
  }
  print $stat->mean;

Overview

Standard statistics using Welford's algorithm

Methods

new

  my $stat = Statistics::Welford->new;

The "new" constructor lets you create a new Statistics::Welford object.

add

Add an entry to the statistics base

n

Returns the number of entries to the statistics base

min

Returns the minimum number in the statistics base

max

Returns the maximum number in the statistics base

mean

Returns the mean value

variance

Returns the variance value

standard_deviation

Returns the standard deviation value

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–10
  2. 11
  3. 12–13

Author

Kaare Rasmussen <[email protected]>.

From libstatistics-welford-perl 0.02-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.