| Date | File | Comment by | Comment | Rating |
|---|---|---|---|---|
| 05 Nov 2009 | Sampling from a discrete distribution The function is to draw samples from an arbitrary discrete distribution. | Chen, Michael | your function seems to complicate the problem a little bit.
|
|
| 16 Oct 2009 | kmeans clustering Fully vectorized kmeans algorithm. Fast yet simple (10 lines) | Chen, Michael | The results of kmeans algorithm can be different with different initializations. Actually the kmeans function in matlab is not a standard kmeans algorithm. It tries to get smaller energy by switching data points in different clusters after the standard kmeans procedure converged.
|
|
| 08 Oct 2009 | kmeans clustering Fully vectorized kmeans algorithm. Fast yet simple (10 lines) | Chen, Michael | Yes, just call the litekmeans.m to get the clustering results. You cannot get a visualization in a simple way for the data whose dimensions are more than 3. The scatterd.m can only handle data of 2d or 3d. |
|
| 10 Aug 2009 | kmeans clustering Fully vectorized kmeans algorithm. Fast yet simple (10 lines) | Chen, Michael | To Sven:
|
|
| 03 Jul 2009 | Pairwise Euclidean distances Fully vectorized function to compute square Euclidean or Mahalanobis distances between vectors. | Chen, Michael | One more word for input verification, you can not check every aspects of the inputs. For example, checking whether the input matirx is positive definite in this code is just crazy which will cost more time than the function itself. One must end up at some point between checking everything and checking nothing, which is a design desicion the coder should make.
|
|
| 03 Jul 2009 | Pairwise Euclidean distances Fully vectorized function to compute square Euclidean or Mahalanobis distances between vectors. | Chen, Michael | By the way, reading you review reminds me some review comments of some of my papers. Some reviewers just like to focus on whether the formate is right, whether the citation is right even whether the spell is right but not the idea of the paper itself. That is realy a pity. |
|
| 03 Jul 2009 | Pairwise Euclidean distances Fully vectorized function to compute square Euclidean or Mahalanobis distances between vectors. | Chen, Michael | If you have read the code STL of C++, you will find there is little if statements, and almost no runtime check for input. That is because it reduces the efficiency.
|
|
| 02 Jul 2009 | Pairwise Euclidean distances Fully vectorized function to compute square Euclidean or Mahalanobis distances between vectors. | Chen, Michael | If you want the Euclidean distance itself, nobody prevents you from taking a simple sqrt on top of this function, it wont cost you a second. On the other hand, there are a lot of situations that the square distance is required (or sufficient) not the distance, such as KNN, Kmeans, Spherical Gaussian density, etc. This is just code for academic purpose, if you feel helpful, just use it where it is suitable. I'm not making some industry product, so give me a break. |
|
| 02 Jul 2009 | Pairwise Euclidean distances Fully vectorized function to compute square Euclidean or Mahalanobis distances between vectors. | Chen, Michael | The speed gain is not that this code does not compute sqrt but that it has no for loops, which is the main purpose of this function: demostrating how to vectorized the code in such scenarios.
|
|
| 16 Mar 2009 | Efficient K-Means Clustering using JIT A simple but fast tool for K-means clustering | Chen, Michael | ||
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.
Contact us at files@mathworks.com