Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: RFC: Fuzzy Clustering with Perl

by BUU (Prior)
on Nov 03, 2006 at 20:52 UTC ( #582163=note: print w/replies, xml ) Need Help??

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, =]

Replies are listed 'Best First'.
Re^3: RFC: Fuzzy Clustering with Perl
by lin0 (Curate) on Nov 03, 2006 at 21:34 UTC

    Hi BUU,

    I think that the first option is the correct one because I want the loop to run for $number_of_clusters times. Because the loop starts in 0, it should go up to $number_of_clusters-1.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://582163]
[1nickt]: hm, what did I do wrong? No download link in a code secrtion of a node I just posted ...
[Corion]: I see a download link there?
[Corion]: (at least the curl stuff is in a download link)
[Corion]: Also, I think the OPs problem is on their intranet and not on the internet (also, they should likely use WWW::Mechanize instead, which knows about cookie)
[1nickt]: yes, could be.
[1nickt]: I don;t see the link , definitely, after reloading the node
[1nickt]: Is it possible to disable it?
[Discipulus]: if you mean [download] after the code it is there 1nickt
[1nickt]: yes, Corion sees it too, and I see it when not logged in.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-05-23 18:14 GMT
Find Nodes?
    Voting Booth?