help-octave
[Top][All Lists]
Advanced

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

Re: K means.


From: Søren Hauberg
Subject: Re: K means.
Date: Fri, 09 Dec 2011 09:26:10 +0100

fre, 09 12 2011 kl. 08:00 +0100, skrev Søren Hauberg:
> My current version works like
> 
>   clusters = kmeans (data, initial_clusters);
> 
> whereas Matlab's work like
> 
>   clusters = kmeans (data, number_of_clusters);
> 
> I think we should at least match this before putting it into the
> statistics package. But otherwise, I see no problems with not having all
> the options available that Matlab has.

The attached version has a more compatible API. It's not perfect, but it
seems to work fairly well.

Søren

Attachment: kmeans.m
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]