Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
go ahead... be a heretic
 
PerlMonks  

Re: Is there a simpler way??

by repson (Chaplain)
on Apr 08, 2001 at 03:28 UTC ( [id://70778]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Is there a simpler way??

Here is one way I put together where I assume @values to already contain the data from the DAT file mentioned. Code untested.
# compute average $total += $_ for @values; $average = $total / @values; # compute stddev according to your method $total_deviation += ($_ - $average)**2 for @values; $standard_deviation = sqrt($total_deviation) / @values; # compute stddev as I recall it, probably wrong $total_deviation += abs($_ - $average) for @values; $standard_deviation = $total_deviation / @values;

Replies are listed 'Best First'.
Re: Re: Is there a simpler way??
by yabba (Initiate) on Apr 08, 2001 at 04:13 UTC
    Hey, thanks for your help, but I have a question. The @values, what are you referring to?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://70778]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.