in reply to Re: Read in values and average -- Perl for MacOS X
in thread Read in values and average -- Perl for MacOS X
sh1tn-
Thanks for the code-- It seems to work perfectly, except for the fact that the resulting mean value seems to be (sum * count) instead of (sum / count). I tried fiddling with the code to get it to output the ratio instead of the product, but to no avail.
For example, a file with the following comma delimited values:
1 1 1
outputs:
9
(1+1+1 * 3)
Any ideas?
Thanks,
Brian
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read in values and average -- Perl for MacOS X
by sh1tn (Priest) on Feb 15, 2005 at 09:02 UTC |