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

Re: Statistical data analysis

by thraxil (Prior)
on Jun 05, 2002 at 15:35 UTC ( #171868=note: print w/ replies, xml ) Need Help??


in reply to Statistical data analysis

if this were a code review i'd point out the following:

  • use strict; and -w
  • your formatting is inconsistent. eg, the line:
    $VX = ($SX2*$Xn - $Sx * $Sx)/($Xn*$Xn);
  • i'd suggest using a HEREDOC to print the output instead of 27 or so print statements.

otherwise, the code is pretty straightforward, the variables are generally well-named, and the math looks right to me. so a ++ despite my nitpicks.

anders pearson


Comment on Re: Statistical data analysis
Re: Re: Statistical data analysis
by moxliukas (Curate) on Jun 05, 2002 at 16:56 UTC
    Thanks for the nitpicking. I have changed everything the way you suggested and this hopefully resulted in a more readable code. Thank you again.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://171868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-08-01 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls