Re: "Cluster" please help [message #53345] |
Mon, 09 April 2007 08:14 |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Apr 6, 6:21 pm, "Dilku...@gmail.com" <Dilku...@gmail.com> wrote:
> Dear all,
> I cannot seem to get the cluster function to work. I know the data
> plays a big role in the computation.. but visually i see 3 clusters in
> the array. but it groups it into 1 cluster. ie there is nothing where
> result=1
>
> weights = CLUST_WTS(array, N_CLUSTERS = 3)
> result = CLUSTER(array, weights, N_CLUSTERS = 3)
> ;Plot each cluster using a different symbol:
> IPLOT, array[*, WHERE(result eq 0)], $
> LINESTYLE = 6, SYM_INDEX = 2
> IPLOT, array[*, WHERE(result eq 1)], /OVERPLOT, $
> LINESTYLE = 6, SYM_INDEX = 4
>
> please help
> thanks
> dilkushi
Without seeing the data, this is hard to troubleshoot. What does your
array look like? size(array)=?
|
|
|