MATLAB Answers

Arunachalam
1

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.

  0 Comments

Products

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: http://www.mathworks.com/help/stats/clustering.evaluation.gapevaluationclass.html

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

You can also use this file exchange: http://www.mathworks.com/matlabcentral/fileexchange/37905-gap-statistics

  0 Comments


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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!