1 function [NcutDiscrete,NcutEigenvectors,NcutEigenvalues] = ncutW(W,nbcluster);
2 % [NcutDiscrete,NcutEigenvectors,NcutEigenvalues] = ncutW(W,nbcluster);
4 % Calls ncut to compute NcutEigenvectors and NcutEigenvalues of W with nbcluster clusters
5 % Then calls discretisation to discretize the NcutEigenvectors into NcutDiscrete
6 % Timothee Cour, Stella Yu, Jianbo Shi, 2004
8 % compute continuous Ncut eigenvectors
9 [NcutEigenvectors,NcutEigenvalues] = ncut(W,nbcluster);
11 % compute discretize Ncut vectors
12 [NcutDiscrete,NcutEigenvectors] =discretisation(NcutEigenvectors);
15 NcutDiscrete = full(NcutDiscrete);