Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Calculate jackknife error from of each column of a multi-column file

by jwkrahn (Abbot)
on Dec 15, 2020 at 09:46 UTC ( [id://11125221]=note: print w/replies, xml ) Need Help??


in reply to Calculate jackknife error from of each column of a multi-column file

How do I remove this warning?
foreach my $j ($col_start .. $#column) { $n[$j] += 0; # add this to remove warning msg $x[$n[$j]][$j] = $column[$j]; $x_tot[$j] += $x[$n[$j]][$j]; $n[$j]++; }
Any other suggestions on my perl usage are also welcome

The lines:

my @n=0; my @x_tot=0; my @g_jack_av=0; my @g_jack_err=0;

Should be:

my @n; my @x_tot; my @g_jack_av; my @g_jack_err;

As you don't have to assign a value to the first array element.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found