NAME

Math::VecStat - Some basic numeric stats on vectors

SYNOPSIS

use Math::VecStat qw(max min sum average);
$max=max($v1,$v2,...);
$max=max(@vector);
$max=max(\@vector);
$min=min($v1,$v2,...);
$min=min(@vector);
$min=min(\@vector);
$sum=sum($v1,$v2,...);
$sum=sum(@vector);
$sum=sum(\@vector);
$average=average($v1,$v2,...);
$av=average(@vector);
$av=average(\@vector);

DESCRIPTION

This package procides some basic statistics on numerical
vectors. All the subroutines can take a copy of the vector, or,
preferably a reference to the vector to be operated on.
max($v1,$v2,..), max(@vector), max(\@vector)

return the maximum value of given values or vector

min($v1,$v2,..), min(@vector), min(\@vector)

return the minimum value of given values or vector

sum($v1,$v2,...), sum(@vector), sum(\@vector)

return the sum of the given values or vector

average($v1,$v2,..), average(@vector), average(\@vector)

return the average of the given values or vector

HISTORY

$Log: VecStat.pm,v $
Revision 1.3  1996/01/06 11:03:30  willijar
Fixed stupid bug that crept into looping in min and max functions

Revision 1.2  1995/12/26 09:56:38  willijar
Oops - removed xy data functions.

Revision 1.1  1995/12/26 09:39:07  willijar
Initial revision

BUGS

Let me know. I welcome any appropriate additions for this package.

AUTHOR

John A.R. Williams <J.A.R.Williams@aston.ac.uk>

1 POD Error

The following errors were encountered while parsing the POD:

Around line 46:

You forgot a '=back' before '=head1'