Code covered by the BSD License  

Highlights from
Fast and efficient spectral clustering

image thumbnail

Fast and efficient spectral clustering


Ingo (view profile)


02 Jan 2012 (Updated )

Perform fast and efficient spectral clustering algorithms

plotSilhouette(hObject, handles)
function handles = plotSilhouette(hObject, handles)

plotDimensions = get(handles.lstPlotDimensions, 'Value');

FigureTitle = 'Silhouette';

[handles, handles.figSilhouette] = openPlotFigure(hObject, handles, ...
    'Silhouette', FigureTitle);

indVector = convertClusterVector(handles.ClusteredData);

[S, handles.figSilhouette] = silhouette((handles.Data(plotDimensions, :))', ...

Avg = sum(S) / size(S, 1);
FigureTitle = sprintf('Silhouette (Average: %.3f)', Avg);

hold off;

guidata(hObject, handles);

Contact us