Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Is there a simpler way??

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


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;


Comment on Re: Is there a simpler way??
Download Code
Re: Re: Is there a simpler way??
by yabba on Apr 08, 2001 at 08: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
Node Status?
node history
Node Type: note [id://70778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-20 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls