We are currently working on a cleaner and possibly more efficient version of the code.

Using the MinMaxSelection package (by Bruno Luong <brunoluong@yahoo.com>) could make the gaussknn.m code much faster for large data set. We have already included the package here. To use, you just need to unzip the package, compile it, and add its directory to the matlab PATH.

A demo file for the spiral data set with outliers is also provided.
