[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Clsuter analysis wiht IDL



Benno,

Thanks for the input.
You suggested:
 
use something like
ref_img=REFORM(image,1,658*658)
weights = clust_wts(ref_img, n_clusters=3)
cls=cluster(ref_img,weights,n_cluster=3)
tvscl,reform(cls,658,658)

but when computing the weights it goes bad
Program caused arithmetic error: Floating underflow
and I get an array that is [1,3] and the values are
5.60519e-045
5.60519e-045
5.60519e-045

tried converting to float before calculating weights, but same result. Any suggestions anyone? realize per Craig's post that cluster analysis isn't what IDL has been used most for...
D