• 大小: 0.01M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-12
  • 语言: 其他
  • 标签: 其他  

资源简介

SSC_1.0.rar

资源截图

代码片段和文件信息

%--------------------------------------------------------------------------
% This function takes a NxN coefficient matrix and returns a NxN adjacency
% matrix by choosing only the K strongest connections in the similarity
% graph
% CMat: NxN coefficient matrix
% K: number of strongest edges to keep; if K=0 use all the coefficients
% CKSym: NxN symmetric adjacency matrix
%--------------------------------------------------------------------------
% Copyright @ Ehsan Elhamifar 2010
%--------------------------------------------------------------------------


function CKSym = BuildAdjacency(CMatK)

N = size(CMat1);
CAbs = abs(CMat);
for i = 1:N
    c = CAbs(:i);
    [PSrtPInd] = sort(c‘descend‘);
    CAbs(:i) = CAbs(:i) ./ abs( c(PInd(1)) );
end

CSym = CAbs + CAbs‘;

if (K ~= 0)
    [SrtInd] = sort( CSym1‘descend‘ );
    CK = zeros(NN);
    for i = 1:N
        for j = 1:K
            CK( Ind(ji)i ) = CSym( Ind(ji)i ) ./ CSym( Ind(1i)i );
        end
    end
    CKSym = CK + CK‘;
else
    CKSym = CSym;
end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......      1036  2010-03-02 23:47  SSC_1.0\BuildAdjacency.m

    .......      1505  2010-03-02 23:46  SSC_1.0\DataProjection.m

    .......       734  2010-03-02 23:47  SSC_1.0\Misclassification.m

    .......      1099  2010-03-02 23:48  SSC_1.0\missclassGroups.m

    .......      1322  2010-03-02 23:47  SSC_1.0\OutlierDetection.m

    .......       120  2009-10-07 15:45  SSC_1.0\Readme.tex

    .......      3615  2010-07-16 14:40  SSC_1.0\SparseCoefRecovery.m

    .......      2037  2010-03-02 23:47  SSC_1.0\SpectralClustering.m

    .......      3116  2010-07-16 14:37  SSC_1.0\SSC.m

     目录          0  2010-07-16 14:45  SSC_1.0

----------- ---------  ---------- -----  ----

                14584                    10


评论

共有 条评论