91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-05-16
  • 語言: Matlab
  • 標(biāo)簽: LLE??源代碼??

資源簡介

該段代碼可在matlab軟件上可執(zhí)行,實(shí)現(xiàn)LLE降維,為學(xué)習(xí)模式識別及其他流形的降維方法提供參考

資源截圖

代碼片段和文件信息

clc
close?all
clear?all
%[Mn1]=size(I)
M=400;
%瑞士卷
t=(3*pi/2)*(1+2*rand(1M));
h=21*rand(1M);
X=[t.*cos(t);h;t.*sin(t)];
x1=t.*cos(t);
x2=t.*sin(t);
ColorVector=t‘;
scatter3(X(1:)X(2:)X(3:)3ColorVector‘filled‘);
%Toroidal------------------------------------------------------------------
%noisesigma=005;
%tt=(1:N)‘/N;
%tt=tt.^2*pi;
%figureplot3((2+cos(8*tt)).*cos(tt)(2+cos(8*tt)).*sin(tt)sin(8*tt)‘bo‘‘linewidth‘1);
%--------------------------------------------------------------------------
K=8;
d=2;
[DN]=size(X);
%1)計算近鄰
X2=sum(X.^21);
distance=repmat(X2N1)+repmat(X2‘1N)-2*X‘*X;
[sortedindex]=sort(distance);
neighborhood=index(2:(1+K):);%K個近鄰
%2)
if?K>d

評論

共有 條評論