Dear Sebastien,
I had compiled the mex-files successfully.The "sample_mvgm" and " ndellipse" were executed successfully while there were something wrong with "yael_kmeans".It was reported that "matlab has matlab has encountered an internal problem and needs to close ".
Please give me a hand.
Compiler: Microsoft Software Development Kit (SDK) 7.1
MatlabRelease: matlab 7.14.0.739 (R2012a)

Thank you for checking. The reason is that there are cases where the cardinality of the data is unknown before applying clustering. Well, I can first check the cardinality of the data and then use k <= cardinality but I just thought it would be great if your code could handle that situation.

My input data X is a set of one dimensional scalar and the values are taken from a finite discrete set S, e.g., S = {1,2,3,4,5}. When I run yael_kmeans with K>|S|, it looks like yael_kmeans goes into an infinite loop. Do you have any idea on how to fix it?