亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mds.m

?? 模式識別常用功能函數(shù)
?? M
?? 第 1 頁 / 共 3 頁
字號:
        % Plot progress if requested.        if (opt.inspect > 0) & (mod(it,opt.inspect) == 0) %          if (it == 0), figure(1); clf; end          mds_plot(y,yrep,opt.plotlab,replab,e);         end        if (success)          sigma = sigma0/sqrt(pnorm2);      % SIGMA: a small step from y to yy          yy    = y + sigma .*p;          [e,a] = mds_samstress(opt.q,yy,yrep,Ds,[],opt.nanid,opt.isratio);           g2    = mds_gradients(opt.q,yy,yrep,a*Ds,[],opt.nanid); % Gradient for yy          s     = (g2-g1)/sigma;        % Approximation of Hessian*P directly, instead of computing          delta = p(:)' * s(:);         % the Hessian, since only DELTA = P'*Hessian*P is in fact needed        end        % Regularize the Hessian indirectly to make it positive definite.        % DELTA is now computed as P'* (Hessian + regularization * Identity) * P        delta = delta + (lambda1 - lambda) * pnorm2;          % Indicate if the Hessian is negative definite; the regularization above was too small.        if (delta < 0)          lambda1 = 2 * (lambda - delta/pnorm2);  % Now the Hessian will be positive definite          delta   = -delta + lambda * pnorm2;     % This is obtained after plugging lambda1           lambda  = lambda1;                      % into the formulation a few lines above.        end        mi = - p(:)' * g1(:);        yy = y + (mi/delta) .*p;                  % mi/delta is a step size         [ee,a] = mds_samstress(opt.q,yy,yrep,Ds,[],opt.nanid,opt.isratio);         % This minimization procedure is based on the second order approximation of the          % stress function by using the gradient and the Hessian approximation. The Hessian         % is regularized, but maybe not sufficiently. The ratio Dc (<=1) below indicates         % a proper approximation, if Dc is close to 1.        Dc = 2 * delta/mi^2 * (e - ee);         e  = ee;        % If Dc > 0, then the stress can be successfully decreased.        success = (Dc >= 0);        if (success)          y       = yy;          [ee,a]  = mds_samstress(opt.q,yy,yrep,Ds,[],opt.nanid,opt.isratio);           g1      = mds_gradients(opt.q,yy,yrep,a*Ds,[],opt.nanid);           gnorm2  = g1(:)' * g1(:);          lambda1 = 0;          beta = max(0,(g1(:)'*(g1(:)-g0(:)))/mi);            p   = -g1 + beta .* p;                 % P is a new conjugate direction            if (g1(:)'*p(:) >= 0 | mod(it-1,n*m) == 0),            p = -g1;                            % No much improvement, restart          end             if (Dc >= 0.75)            lambda = 0.25 * lambda;             % Make the regularization smaller          end          it  = it + 1;           err = [err; e];          fprintf (opt.st,'iteration: %4i   stress: %3.8d\n',it,e);         else        % Dc < 0            % Note that for Dc < 0, the iteration number IT is not increased,           % so the Hessian is further regularized until SUCCESS equals 1.          lambda1 = lambda;        end      % The approximation of the Hessian was poor or the stress was not       % decreased (Dc < 0), hence the regularization lambda is enlarged.      if (Dc < 0.25)        lambda = lambda + delta * (1 - Dc)/pnorm2;      end    end  endreturn;% **********************************************************************************%MDS_STRESS - Calculate Sammon stress during optimization%%   E = MDS_SAMSTRESS(Q,Y,YREP,Ds,D,NANINDEX)%% INPUT%   Q          Indicator of the Sammon stress; Q = -2,-1,0,1,2%   Y         Current lower-dimensional configuration%   YREP      Configuration of the representation objects; it should be%             empty when no representation set is considered%   Ds        Original distance matrix%   D         Approximate distance matrix (optional; otherwise computed from Y)%   NANINDEX  Index of the missing values; marked in Ds by NaN (optional; to%               be found in Ds)%% OUTPUT%   E         Sammon stress%% DESCRIPTION% Computes the Sammon stress between the original distance matrix Ds and the% approximated distance matrix D between the mapped configuration Y and the% configuration of the representation set YREP, expressed as follows:%% E = 1/(sum_{i<j} Ds_{ij}^(q+2)) sum_{i<j} (Ds_{ij} - D_{ij})^2 * Ds_{ij}^q%% It is directly used in the MDS_SAMMAP routine.%% Copyright: Elzbieta Pekalska, Robert P.W. Duin, ela@ph.tn.tudelft.nl, 2000-2003% Faculty of Applied Sciences, Delft University of Technology%function [e,alpha] = mds_samstress (q,y,yrep,Ds,D,nanindex,isratio)  % If D is not given, calculate it from Y, the current mapped points.  if (nargin < 5) | (isempty(D))    if (~isempty(yrep))      D = sqrt(distm(y,yrep));         else      D = sqrt(distm(y));         end  end  if (nargin < 6)    nanindex = [];    % Not given, so calculate below.  end  if (nargin < 7)    isratio = 0;      % Assume this is meant.  end  todefine = isempty(yrep);  [m,n]  = size(y); [mm,k] = size(Ds);  if (m ~= mm)    error('The sizes of Y and Ds do not match.');  end  if (any(size(D) ~= size(Ds)))    error ('The sizes of D and Ds do not match.');  end  m2 = m*k;  % Convert to double.  D  = +D; Ds = +Ds;  % I is the index of non-NaN, non-zero (> eps) values to be included   % for the computation of the stress.  I = 1:m2;   if (~isempty(nanindex))    I(nanindex) = [];  end  O = [];  if (todefine), O = 1:m+1:m2; end                                 I = setdiff(I,O);  % If OPTIONS.isratio is set, calculate optimal ALPHA to scale with.  if (isratio)    alpha = sum((Ds(I).^q).*D(I).^2)/sum((Ds(I).^(q+1)).*D(I));    Ds    = alpha*Ds;  else    alpha = 1;   end      % C is the normalization factor.  c = sum(Ds(I).^(q+2));   % If Q == 0, prevent unnecessary calculation (X^0 == 1).  if (q ~= 0)    e = sum(Ds(I).^q .*((Ds(I)-D(I)).^2))/c;  else    e = sum(((Ds(I)-D(I)).^2))/c;  endreturn; % **********************************************************************************%MDS_GRADIENTS - Gradients for variants of the Sammon stress%%   [G1,G2,CC] = MDS_GRADIENTS(Q,Y,YREP,Ds,D,NANINDEX)%% INPUT%   Q          Indicator of the Sammon stress; Q = -2,-1,0,1,2%   Y         Current lower-dimensional configuration%   YREP      Configuration of the representation objects; it should be%             empty when no representation set is considered%   Ds        Original distance matrix%   D         Approximate distance matrix (optional; otherwise computed from Y)%   nanindex  Index of missing values; marked in Ds by NaN (optional;%             otherwise found from Ds)%% OUTPUT%   G1        Gradient direction%   G2        Approximation of the Hessian by its diagonal  %% DESCRIPTION  % This is a routine used directly in the MDS_SAMMAP routine.%% SEE ALSO% MDS, MDS_INIT, MDS_SAMMAP, MDS_SAMSTRESS%% Copyright: Elzbieta Pekalska, Robert P.W. Duin, ela@ph.tn.tudelft.nl, 2000-2003% Faculty of Applied Sciences, Delft University of Technology%function [g1,g2,c] = mds_gradients(q,y,yrep,Ds,D,nanindex)  % If D is not given, calculate it from Y, the current mapped points.  if (nargin < 5) | (isempty(D))    if (~isempty(yrep))      D = sqrt(distm(y,yrep));         else      D = sqrt(distm(y));         end  end  % If NANINDEX is not given, find it from Ds.  if (nargin < 6)    nanindex = find(isnan(Ds(:))==1);    end  % YREP is empty if no representation set is defined yet.  % This happens when the mapping should be defined.  todefine = (isempty(yrep));  if (todefine)     yrep  = y;  end  [m,n]  = size(y); [mm,k] = size(Ds);  if (m ~= mm)    error('The sizes of Y and Ds do not match.');  end  if (any(size(D) ~= size(Ds)))    error ('The sizes of D and Ds do not match.');  end  m2 = m*k;  % Convert to doubles.  D  = +D; Ds = +Ds;  % I is the index of non-NaN, non-zero (> eps) values to be included   % for the computation of the gradient and the Hessians diagonal.  I = (1:m2)';  if (~isempty(nanindex))    I(nanindex) = [];  end  K    = find(Ds(I) <= eps | D(I) <= eps);  I(K) = [];  % C is a normalization factor.  c = -2/sum(Ds(I).^(q+2));   % Compute G1, the gradient.  h1 = zeros(m2,1);  if (q == 0)                    % Prevent unnecessary computation when Q = 0.    h1(I) = (Ds(I)-D(I)) ./ D(I);    else      h1(I) = (Ds(I)-D(I)) ./ (D(I).*(Ds(I).^(-q)));  end  h1 = reshape (h1',m,k);  g2 = h1 * ones(k,n);          % Here G2 is assigned only temporarily,  g1 = c * (g2.*y - h1*yrep);    % for the computation of G1.       % Compute G2, the diagonal of the Hessian, if requested.  if (nargout > 1)    h2 = zeros(m2,1);    switch (q)      case -2,         h2(I) = -1./(Ds(I).*D(I).^3);      case -1,         h2(I) = -1./(D(I).^3);      case 0,         h2(I) = - Ds(I)./(D(I).^3);      case 1,         h2(I) = - Ds(I).^2./(D(I).^3);      case 2,         h2(I) = -(Ds(I)./D(I)).^3;      end     h2 = reshape (h2',m,k);    g2 = c * (g2 + (h2*ones(k,n)).*y.^2 + h2*yrep.^2 - 2*(h2*yrep).*y);    endreturn;% **********************************************************************************%MDS_PLOT Plots the results of the MDS mapping in a 2D or 3D figure% %   MDS_PLOT(Y,YREP,LAB,REPLAB,E)% % INPUT%   Y       Configuration in 2D or 3D space%   YREP    Configuration of the representation points in 2D or 3D space%   LAB     Labels of Y%   REPLAB  Labels of YREP%   E       Stress value%% DESCRIPTION  % Used directly in MDS_SAMMAP routine.function mds_plot (y,yrep,lab,replab,e)  % This is done in a rather complicated way in order to speed up drawing.  K = min(size(y,2),3);  if (K > 1)    y   = +y;    col = 'brmk';    sym = ['+*xosdv^<>p']';    ii  = [1:44];    s   = [col(ii-floor((ii-1)/4)*4)' sym(ii-floor((ii-1)/11)*11)];    [nlab,lablist] = renumlab([replab;lab]); c = max(nlab);    [ms,ns] = size(s); if (ms == 1), s = setstr(ones(m,1)*s); end    yy = [yrep; y];      cla;     if (K == 2)      hold on;      for i = 1:c        J = find(nlab==i); plot(yy(J,1),yy(J,2),s(i,:));      end    else       for i = 1:c        J = find(nlab==i); plot3(yy(J,1),yy(J,2),yy(J,3),s(i,:));        if (i == 1), hold on; grid on; end      end    end    title(sprintf('STRESS: %f', e));    axis equal;      drawnow;  endreturn;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91丝袜在线18| 久久精品二区亚洲w码| 99久久精品免费看国产| 国产精品乱人伦| 99riav一区二区三区| 伊人色综合久久天天| 欧美日韩免费视频| 久久成人羞羞网站| 国产人伦精品一区二区| zzijzzij亚洲日本少妇熟睡| 亚洲欧洲精品一区二区三区不卡| eeuss影院一区二区三区 | 国产综合久久久久久久久久久久| 久久亚洲二区三区| 成人激情文学综合网| 一个色综合av| 日韩一区二区三区电影在线观看 | 亚洲国产sm捆绑调教视频| 在线观看91精品国产入口| 日产欧产美韩系列久久99| 亚洲精品在线免费播放| 成人性视频免费网站| 亚洲综合久久久| 日韩欧美国产午夜精品| 国产河南妇女毛片精品久久久| 国产精品全国免费观看高清 | 欧美日韩一区二区三区四区| 久久国内精品自在自线400部| 欧美激情综合五月色丁香| 欧洲av在线精品| 麻豆精品在线看| 日韩理论片一区二区| 欧美区一区二区三区| 国产麻豆视频精品| 成人欧美一区二区三区黑人麻豆| 51精品秘密在线观看| 成人综合在线视频| 日日骚欧美日韩| 日韩美女视频19| 日韩精品一区二区三区蜜臀 | 成人午夜短视频| 奇米精品一区二区三区在线观看| 亚洲欧美在线高清| 日韩欧美美女一区二区三区| 91在线观看免费视频| 美美哒免费高清在线观看视频一区二区 | 依依成人精品视频| 日韩精品一区二区三区中文精品| 成人久久视频在线观看| 日一区二区三区| ㊣最新国产の精品bt伙计久久| 日韩欧美国产综合在线一区二区三区 | 91精品国产麻豆国产自产在线| 成人看片黄a免费看在线| 久久超碰97中文字幕| 亚洲丰满少妇videoshd| 亚洲视频免费在线观看| 中文字幕成人网| 久久人人97超碰com| 91精品国产免费| 欧美午夜在线一二页| 成人av资源网站| 国产91富婆露脸刺激对白| 日韩av不卡在线观看| 亚洲超碰97人人做人人爱| 亚洲另类在线一区| 国产精品美女久久久久久久网站| 精品国产自在久精品国产| 欧美一区二区三区男人的天堂| 色94色欧美sute亚洲线路一ni| 成人黄页毛片网站| 成人福利在线看| 高清av一区二区| 国产精品影音先锋| 国产精品一区免费视频| 国产麻豆成人传媒免费观看| 久久99久久久欧美国产| 麻豆国产91在线播放| 麻豆精品新av中文字幕| 捆绑变态av一区二区三区 | 激情文学综合网| 韩日欧美一区二区三区| 精品亚洲porn| 久久爱www久久做| 激情久久久久久久久久久久久久久久| 日本亚洲天堂网| 精品在线视频一区| 国产一区二区91| 成人精品鲁一区一区二区| 国产成人av资源| jlzzjlzz国产精品久久| 91麻豆国产在线观看| 色综合久久天天综合网| 欧美色手机在线观看| 在线观看91av| 久久精品一区二区三区不卡牛牛| 久久日韩粉嫩一区二区三区| 中文字幕高清不卡| 亚洲自拍偷拍欧美| 日韩影院在线观看| 国产在线视频一区二区三区| 国产福利一区二区三区视频| 不卡视频在线看| 91精品黄色片免费大全| 久久久久国产精品麻豆ai换脸 | 国产成人免费视频网站 | 免费观看在线色综合| 国产一区二区0| 在线中文字幕一区| 欧美成人精品高清在线播放| 国产三级一区二区三区| 亚洲激情在线播放| 免费视频一区二区| 成人免费观看视频| 正在播放一区二区| 国产精品久久久久影院| 午夜精品久久久久久久蜜桃app| 久久99国产精品麻豆| 91麻豆免费观看| 日韩欧美亚洲国产另类| 成人欧美一区二区三区小说| 日本特黄久久久高潮| www.久久久久久久久| 欧美一区二区视频网站| 中文字幕永久在线不卡| 日韩电影在线观看电影| 99re这里都是精品| 欧美xxxxxxxx| 亚洲图片欧美一区| 国产盗摄精品一区二区三区在线 | 欧美在线观看你懂的| 精品国产一二三区| 亚洲国产人成综合网站| 成人免费的视频| 欧美精品一区二区精品网| 一二三区精品视频| 成人av在线播放网站| 欧美日韩国产精选| 中文字幕一区在线| 国产一区二区在线影院| 欧美日韩日本视频| 自拍偷拍亚洲欧美日韩| 国产伦精品一区二区三区免费| 欧美日韩精品欧美日韩精品一| 中文无字幕一区二区三区 | 国产精品一线二线三线精华| 777精品伊人久久久久大香线蕉| 亚洲天堂免费看| 国产盗摄女厕一区二区三区| 日韩欧美久久久| 日本免费新一区视频| 欧美三级乱人伦电影| 日韩美女久久久| 国产99久久久国产精品潘金| a美女胸又www黄视频久久| 欧美精品久久一区| 亚洲在线视频网站| www.综合网.com| 日韩免费观看高清完整版| 日韩中文欧美在线| 欧美性色欧美a在线播放| 国产欧美精品日韩区二区麻豆天美| 日本成人超碰在线观看| 色一区在线观看| 国产日韩亚洲欧美综合| 激情综合网av| 久久综合久久综合久久| 国产精品亚洲а∨天堂免在线| 欧美日韩色一区| 亚洲一区二区中文在线| 色欧美日韩亚洲| 17c精品麻豆一区二区免费| 国产精品自产自拍| 久久久综合视频| 高清av一区二区| 日本一区二区三区国色天香| 精品一区二区三区视频在线观看| 这里是久久伊人| 日日夜夜精品视频天天综合网| 欧美在线你懂得| 亚洲一区二区高清| 一本到三区不卡视频| 午夜国产精品影院在线观看| 91久久人澡人人添人人爽欧美| 国产精品午夜在线观看| 蜜桃av噜噜一区二区三区小说| 欧美日韩亚洲国产综合| 一区二区三区毛片| 97久久超碰国产精品| 久久女同精品一区二区| 精品一区免费av| 国产精品高潮呻吟| 成人免费视频播放| 综合久久综合久久| 国产 日韩 欧美大片| 亚洲视频免费观看| 欧美日韩电影在线| 美日韩一区二区三区| 欧美国产日韩a欧美在线观看| 成人免费毛片app|