Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Issue on covariance calculation

by johngg (Canon)
on Apr 13, 2007 at 08:53 UTC ( [id://609848]=note: print w/replies, xml ) Need Help??


in reply to Issue on covariance calculation

Not relevant to your performance issues but your chomp; statements inside the two for loops are not doing anything useful. Without an argument, chomp acts on $_ whereas you want it to act on your loop variables. So do chomp $element; and chomp $inside_elem in the outer and inner loops respectively.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^2: Issue on covariance calculation
by Mandrake (Chaplain) on Apr 13, 2007 at 09:28 UTC
    Thanks for the reply. In fact, the previous version of the code was in that way. Forgot to change when modified it.
    for (@data) { . . .
    Thanks for pointing the mistake out.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found