WWW::Webrobot::Statistic - Plain simple 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.
1 store complete data set (only if you want to call median.
0 needn't store complete data set (median not available).
Number of elements added.
Standard deviation, base n-1
Median. Gives the arithmetic mean of the two "mean" elements if the number of elements is even.
To install WWW::Webrobot, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.