On 7/27/07, yitzle <[EMAIL PROTECTED]> wrote:
> I was under the impression that "average" meant mean.

correct. Average is the common term for mean. In fact, reading the
pages linked above, they do imply (without stating explicitly) that
the three terms describe different calculations.

I can't think of any situation where someone has said average and
meant mode or median.

>
> sub sumIt(@)
> {
>   my $total = 0;
>   $total += $_ for (@_);
>   return $total; # This line might not be needed...
> }
>
> sub avg(@)
> {
>   my @arr = @_;
>   my $arrSize = @arr; # scalar(@arr) is the array size - or one less
> (last index). Double check
>   return simIt(@arr) / $arrSize;
> }
>
> 1;
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>


-- 
-- 
I'm nerdy in the extreme and whiter than sour cream

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to