
WWW::Webrobot::Statistic - Plain simple statistic

use WWW::Webrobot::Statistic; my $s = WWW::Webrobot::Statistic -> new(); $s -> add(3, 4, 5); $s -> add(6, 7); print "n: ", $s->n, "\n"; print "min: ", $s->min, "\n"; print "max: ", $s->max, "\n"; print "mean: ", $s->mean, "\n"; print "median: ", $s->median, "\n"; print "standard deviation: ", $s->standard_deviation, "\n"; print "quadratic mean: ", $s->quad_mean, "\n";

Does some plain statistics. This module will store the complete data set on demand only.

Constructor. Options:
Number of elements added.
Smallest element.
Largest element.
Arithmetic mean.
Quadratic mean.
Standard deviation, base n-1
Median. Gives the arithmetic mean of the two "mean" elements if the number of elements is even.