joni has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I want to use the module Clusterize, but I have problems when trying it. When I type the code:
use Clusterize; my $clusterize = Clusterize->new(); $clusterize->add_pair(1,['1', '2', '3' ]); $clusterize->add_pair(2,['4', '6', '5']); $clusterize->add_pair(3,['1', '2', '3', '2', '3']); $clusterize->add_pair(4,['1', '2', '3' ]); $clusterize->add_pair(5,['4', '6', '5']); $clusterize->add_pair(6,['1', '2', '3', '2', '3']); $clusterize->add_pair(7,['1', '2', '3' ]); $clusterize->add_pair(8,['4', '6', '5']); $clusterize->add_pair(9,['a', 'b', 'c', 'd', 't']); my @clusters = $clusterize->list; print scalar(@clusters);
The result is 0. So there is no element in the clusters array. Can anyone help me how to use this module?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I use Clusterize
by toolic (Bishop) on Apr 21, 2011 at 13:28 UTC | |
|
Re: How can I use Clusterize
by wind (Priest) on Apr 21, 2011 at 13:44 UTC | |
|
Re: How can I use Clusterize
by ww (Archbishop) on Apr 21, 2011 at 12:04 UTC | |
by joni (Initiate) on Apr 21, 2011 at 12:14 UTC | |
|
Re: How can I use Clusterize
by believer (Sexton) on Apr 21, 2011 at 12:16 UTC | |
by joni (Initiate) on Apr 21, 2011 at 13:32 UTC |