Research Assistant in Artificial Intelligence (PhD) at MIT
Watch this Author's files
It would be great to add the ruspini.mat dataset in the submission. (currently available at https://code.google.com/p/a2hbc/source/browse/trunk/a2hbc/scripts/common/LIBRA/ruspini.mat)
Note that the Statistics Toolbox implements the gap statistic as a class in the package clustering.evaluation since R2013b: http://www.mathworks.com/help/stats/clustering.evaluation.gapevaluationclass.html
nstir2k(100 , 100) = -1.7403e+37
Should be equal to 1.