WWW::Webrobot::Histogram - Plain simple histograms
use WWW::Webrobot::Histogram; my $hist = WWW::Webrobot::Histogram -> new(base => 1.4142135623731); $hist -> add(3, 4, 5); $hist -> add(6, 7); my ($hist_neg, $hist_pos) = $hist->histogram;
This module is used to calculate a logarithmic histogram from a set of data.
Constructor. Parameters are given as key=value>. keys are
key=
base [default: 2] base of the logarithmic scale (x-axis)
Add values.
return ($hist_neg, $hist_pos)
$hist_pos is an array reference.
$hist_pos->[$i] (i>=0): shows the number of elements between $base**$i and $base**($i+1). $hist_neg->[$i] (i<0): shows the number of elements between $base**(-$i) and $base**(-$i+1). $hist_neg->[0] is defined but invalid.
Get base attribute, see constructor new. NO SET METHOD!
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.