
Data::Average - Hold Data Set To Calculate Average

use Data::Average; my $data = Data::Average->new; $data->add($_) for (1..100); print $data->avg; # 55

Data::Average is a very simple module: You add values to it, and then you compute the average using the avg() function.

Creates a new Data::Average object
Adds a value to the Data::Average set.
Returns the current data set
Returns the average of the entire set

Copyright (c) 2006-2007 Daisuke Maki <daisuke@endeworks.jp<gt>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.