From: Troels Oesteraa on 5 Apr 2010 15:57 Hello, I am a little bit puzzled about whether the Lloyd/k-means algorithm in the MatLAB function in lloyds.m actually works in either R2009b or R2010a (atleast). When executing the example available in doc, or at: http://www.mathworks.com/access/helpdesk/help/toolbox/comm/ref/lloyds.html The results i get by entering: x = sin([0:1000]*pi/500); [partition,codebook] = lloyds(x,2^3) is: partition = [-0.8118 -0.5502 -0.2727 0.0039 0.2781 0.5516 0.8118] codebook= [ -0.9361 -0.6876 -0.4127 -0.1327 0.1405 0.4157 0.6876 0.9361] which isn't quite the result according to either the doc page or the link above. Is this the result others are getting? Which result would be the correct? B.R. Troels
|
Pages: 1 Prev: Facial aging project help Next: java exception on "import data" |