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:
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.
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.
To install WWW::Webrobot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Webrobot
CPAN shell
perl -MCPAN -e shell install WWW::Webrobot
For more information on module installation, please visit the detailed CPAN module installation guide.