MATLAB Answers


Gap Staticstics Implementation

Asked by Arunachalam on 5 Jun 2011
Latest activity Answered by Franck Dernoncourt on 3 Nov 2013

Does anyone know the reference link of matlab implementation of "Gap Statistics" mentioned in this paper.


Log in to comment.


No products are associated with this question.

1 Answer

Answer by Franck Dernoncourt on 3 Nov 2013

The Statistics Toolbox implements the gap statistic as a class in the package `clustering.evaluation` since R2013b:

    load fisheriris;
    rng('default');  % For reproducibility
    eva = evalclusters(meas,'kmeans','gap','KList',[1:6])

You can also use this file exchange:


Log in to comment.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!