From: Karina on
Peter Perkins <Peter.Perkins(a)MathRemoveThisWorks.com> wrote in message <hmrijb$hfh$2(a)fred.mathworks.com>...
> On 3/4/2010 11:08 PM, Karina wrote:
> > Peter Perkins <Peter.Perkins(a)MathRemoveThisWorks.com> wrote in message
> >> cidx = kmeans(x,8,'Replicates',10);
> >> plot(cidx,x,'.');
>
> I should probably point out that since you already know that the centroids will be at something close to 1:8, you could also have provided that as an explicit starting point, and used only one replicate. But I don't know how general your code needs to be.

My centroids are not 1:8. it is 8 clusters I need. The code is working from time to time (i suppose depends on the cluster centroids). I need to have 8 groups. How do I define fixed cluster centroids?
First  |  Prev  | 
Pages: 1 2
Prev: Report Generator IO Documentation
Next: Substring????