in reply to Re: RFC: Fuzzy Clustering with Perl
in thread RFC: Fuzzy Clustering with Perl
Just a nit:
for my $i ( 0 .. $number_of_clusters-1 ) { ... }
Should be:
for my $i ( 0 .. $#number_of_clusters ) { ... }
Update: Hrm, whups, I read that first line as "0..@number_of_clusters", apparently multiple times. It should not be "0 .. $#number_of_clusters" since @number_of_clusters doesn't exist. It might be more clearly written "1 .. $number_of_clusters" though, =]
for my $i ( 0 .. $number_of_clusters-1 ) { ... }
Should be:
for my $i ( 0 .. $#number_of_clusters ) { ... }
Update: Hrm, whups, I read that first line as "0..@number_of_clusters", apparently multiple times. It should not be "0 .. $#number_of_clusters" since @number_of_clusters doesn't exist. It might be more clearly written "1 .. $number_of_clusters" though, =]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: RFC: Fuzzy Clustering with Perl
by lin0 (Curate) on Nov 03, 2006 at 21:34 UTC |
In Section
Meditations