GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATA::AVERAGE (3)

.ds Aq ’

NAME

Data::Average - Hold Data Set To Calculate Average

CONTENTS

SYNOPSIS



  use Data::Average;

  my $data = Data::Average->new;
  $data->add($_) for (1..100);

  print $data->avg; # 55



DESCRIPTION

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

METHODS

new()

Creates a new Data::Average object

    add($value)

Adds a value to the Data::Average set.

length()

Returns the current data set

avg()

Returns the average of the entire set

AUTHOR

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

LICENSE

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

See http://www.perl.com/perl/misc/Artistic.html

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATA::AVERAGE (3) 2007-11-14

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.