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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pcamat.m

?? The FastICA package is a free (GPL) MATLAB program that implements the fast fixed-point algorithm fo
?? M
字號:
function [E, D] = pcamat(vectors, firstEig, lastEig, s_interactive, ...    s_verbose);%PCAMAT - Calculates the pca for data%% [E, D] = pcamat(vectors, firstEig, lastEig, ... %                 interactive, verbose);%% Calculates the PCA matrices for given data (row) vectors. Returns% the eigenvector (E) and diagonal eigenvalue (D) matrices containing the% selected subspaces. Dimensionality reduction is controlled with% the parameters 'firstEig' and 'lastEig' - but it can also be done% interactively by setting parameter 'interactive' to 'on' or 'gui'.%% ARGUMENTS%% vectors       Data in row vectors.% firstEig      Index of the largest eigenvalue to keep.%               Default is 1.% lastEig       Index of the smallest eigenvalue to keep.%               Default is equal to dimension of vectors.% interactive   Specify eigenvalues to keep interactively. Note that if%               you set 'interactive' to 'on' or 'gui' then the values%               for 'firstEig' and 'lastEig' will be ignored, but they%               still have to be entered. If the value is 'gui' then the%               same graphical user interface as in FASTICAG will be%               used. Default is 'off'.% verbose       Default is 'on'.%%% EXAMPLE%       [E, D] = pcamat(vectors);%% Note %       The eigenvalues and eigenvectors returned by PCAMAT are not sorted.%% This function is needed by FASTICA and FASTICAG% For historical reasons this version does not sort the eigenvalues or% the eigen vectors in any ways. Therefore neither does the FASTICA or% FASTICAG. Generally it seams that the components returned from% whitening is almost in reversed order. (That means, they usually are,% but sometime they are not - depends on the EIG-command of matlab.)% @(#)$Id: pcamat.m,v 1.5 2003/12/15 18:24:32 jarmo Exp $%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Default values:if nargin < 5, s_verbose = 'on'; endif nargin < 4, s_interactive = 'off'; endif nargin < 3, lastEig = size(vectors, 1); endif nargin < 2, firstEig = 1; end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Check the optional parameters;switch lower(s_verbose) case 'on'  b_verbose = 1; case 'off'  b_verbose = 0; otherwise  error(sprintf('Illegal value [ %s ] for parameter: ''verbose''\n', s_verbose));endswitch lower(s_interactive) case 'on'  b_interactive = 1; case 'off'  b_interactive = 0; case 'gui'  b_interactive = 2; otherwise  error(sprintf('Illegal value [ %s ] for parameter: ''interactive''\n', ...		s_interactive));endoldDimension = size (vectors, 1);if ~(b_interactive)  if lastEig < 1 | lastEig > oldDimension    error(sprintf('Illegal value [ %d ] for parameter: ''lastEig''\n', lastEig));  end  if firstEig < 1 | firstEig > lastEig    error(sprintf('Illegal value [ %d ] for parameter: ''firstEig''\n', firstEig));  endend%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Calculate PCA% Calculate the covariance matrix.if b_verbose, fprintf ('Calculating covariance...\n'); endcovarianceMatrix = cov(vectors', 1);% Calculate the eigenvalues and eigenvectors of covariance% matrix.[E, D] = eig (covarianceMatrix);% The rank is determined from the eigenvalues - and not directly by% using the function rank - because function rank uses svd, which% in some cases gives a higher dimensionality than what can be used% with eig later on (eig then gives negative eigenvalues).rankTolerance = 1e-7;maxLastEig = sum (diag (D) > rankTolerance);if maxLastEig == 0,  fprintf (['Eigenvalues of the covariance matrix are' ...	    ' all smaller than tolerance [ %g ].\n' ...	    'Please make sure that your data matrix contains' ...	    ' nonzero values.\nIf the values are very small,' ...	    ' try rescaling the data matrix.\n'], rankTolerance);  error ('Unable to continue, aborting.');end% Sort the eigenvalues - decending.eigenvalues = flipud(sort(diag(D)));%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Interactive part - command-lineif b_interactive == 1  % Show the eigenvalues to the user  hndl_win=figure;  bar(eigenvalues);  title('Eigenvalues');  % ask the range from the user...  % ... and keep on asking until the range is valid :-)  areValuesOK=0;  while areValuesOK == 0    firstEig = input('The index of the largest eigenvalue to keep? (1) ');    lastEig = input(['The index of the smallest eigenvalue to keep? (' ...                    int2str(oldDimension) ') ']);    % Check the new values...    % if they are empty then use default values    if isempty(firstEig), firstEig = 1;end    if isempty(lastEig), lastEig = oldDimension;end    % Check that the entered values are within the range    areValuesOK = 1;    if lastEig < 1 | lastEig > oldDimension      fprintf('Illegal number for the last eigenvalue.\n');      areValuesOK = 0;    end    if firstEig < 1 | firstEig > lastEig      fprintf('Illegal number for the first eigenvalue.\n');      areValuesOK = 0;    end  end  % close the window  close(hndl_win);end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Interactive part - GUIif b_interactive == 2  % Show the eigenvalues to the user  hndl_win = figure('Color',[0.8 0.8 0.8], ...    'PaperType','a4letter', ...    'Units', 'normalized', ...    'Name', 'FastICA: Reduce dimension', ...    'NumberTitle','off', ...    'Tag', 'f_eig');  h_frame = uicontrol('Parent', hndl_win, ...    'BackgroundColor',[0.701961 0.701961 0.701961], ...    'Units', 'normalized', ...    'Position',[0.13 0.05 0.775 0.17], ...    'Style','frame', ...    'Tag','f_frame');b = uicontrol('Parent',hndl_win, ...	'Units','normalized', ...	'BackgroundColor',[0.701961 0.701961 0.701961], ...	'HorizontalAlignment','left', ...	'Position',[0.142415 0.0949436 0.712077 0.108507], ...	'String','Give the indices of the largest and smallest eigenvalues of the covariance matrix to be included in the reduced data.', ...	'Style','text', ...	'Tag','StaticText1');e_first = uicontrol('Parent',hndl_win, ...	'Units','normalized', ...	'Callback',[ ...          'f=round(str2num(get(gcbo, ''String'')));' ...          'if (f < 1), f=1; end;' ...          'l=str2num(get(findobj(''Tag'',''e_last''), ''String''));' ...          'if (f > l), f=l; end;' ...          'set(gcbo, ''String'', int2str(f));' ...          ], ...	'BackgroundColor',[1 1 1], ...	'HorizontalAlignment','right', ...	'Position',[0.284831 0.0678168 0.12207 0.0542535], ...	'Style','edit', ...        'String', '1', ...	'Tag','e_first');b = uicontrol('Parent',hndl_win, ...	'Units','normalized', ...	'BackgroundColor',[0.701961 0.701961 0.701961], ...	'HorizontalAlignment','left', ...	'Position',[0.142415 0.0678168 0.12207 0.0542535], ...	'String','Range from', ...	'Style','text', ...	'Tag','StaticText2');e_last = uicontrol('Parent',hndl_win, ...	'Units','normalized', ...	'Callback',[ ...          'l=round(str2num(get(gcbo, ''String'')));' ...          'lmax = get(gcbo, ''UserData'');' ...          'if (l > lmax), l=lmax; fprintf([''The selected value was too large, or the selected eigenvalues were close to zero\n'']); end;' ...          'f=str2num(get(findobj(''Tag'',''e_first''), ''String''));' ...          'if (l < f), l=f; end;' ...          'set(gcbo, ''String'', int2str(l));' ...          ], ...	'BackgroundColor',[1 1 1], ...	'HorizontalAlignment','right', ...	'Position',[0.467936 0.0678168 0.12207 0.0542535], ...	'Style','edit', ...        'String', int2str(maxLastEig), ...        'UserData', maxLastEig, ...	'Tag','e_last');% in the first version oldDimension was used instead of % maxLastEig, but since the program would automatically% drop the eigenvalues afte maxLastEig...b = uicontrol('Parent',hndl_win, ...	'Units','normalized', ...	'BackgroundColor',[0.701961 0.701961 0.701961], ...	'HorizontalAlignment','left', ...	'Position',[0.427246 0.0678168 0.0406901 0.0542535], ...	'String','to', ...	'Style','text', ...	'Tag','StaticText3');b = uicontrol('Parent',hndl_win, ...	'Units','normalized', ...	'Callback','uiresume(gcbf)', ...	'Position',[0.630697 0.0678168 0.12207 0.0542535], ...	'String','OK', ...	'Tag','Pushbutton1');b = uicontrol('Parent',hndl_win, ...	'Units','normalized', ...	'Callback',[ ...          'gui_help(''pcamat'');' ...          ], ...	'Position',[0.767008 0.0678168 0.12207 0.0542535], ...	'String','Help', ...	'Tag','Pushbutton2');  h_axes = axes('Position' ,[0.13 0.3 0.775 0.6]);  set(hndl_win, 'currentaxes',h_axes);  bar(eigenvalues);  title('Eigenvalues');  uiwait(hndl_win);  firstEig = str2num(get(e_first, 'String'));  lastEig = str2num(get(e_last, 'String'));  % close the window  close(hndl_win);end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% See if the user has reduced the dimension enoughtif lastEig > maxLastEig  lastEig = maxLastEig;  if b_verbose    fprintf('Dimension reduced to %d due to the singularity of covariance matrix\n',...           lastEig-firstEig+1);  endelse  % Reduce the dimensionality of the problem.  if b_verbose    if oldDimension == (lastEig - firstEig + 1)      fprintf ('Dimension not reduced.\n');    else      fprintf ('Reducing dimension...\n');    end  endend%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Drop the smaller eigenvaluesif lastEig < oldDimension  lowerLimitValue = (eigenvalues(lastEig) + eigenvalues(lastEig + 1)) / 2;else  lowerLimitValue = eigenvalues(oldDimension) - 1;endlowerColumns = diag(D) > lowerLimitValue;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Drop the larger eigenvaluesif firstEig > 1  higherLimitValue = (eigenvalues(firstEig - 1) + eigenvalues(firstEig)) / 2;else  higherLimitValue = eigenvalues(1) + 1;endhigherColumns = diag(D) < higherLimitValue;% Combine the results from aboveselectedColumns = lowerColumns & higherColumns;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% print some info for the userif b_verbose  fprintf ('Selected [ %d ] dimensions.\n', sum (selectedColumns));endif sum (selectedColumns) ~= (lastEig - firstEig + 1),  error ('Selected a wrong number of dimensions.');endif b_verbose  fprintf ('Smallest remaining (non-zero) eigenvalue [ %g ]\n', eigenvalues(lastEig));  fprintf ('Largest remaining (non-zero) eigenvalue [ %g ]\n', eigenvalues(firstEig));  fprintf ('Sum of removed eigenvalues [ %g ]\n', sum(diag(D) .* ...    (~selectedColumns)));end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Select the colums which correspond to the desired range% of eigenvalues.E = selcol(E, selectedColumns);D = selcol(selcol(D, selectedColumns)', selectedColumns);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Some more informationif b_verbose  sumAll=sum(eigenvalues);  sumUsed=sum(diag(D));  retained = (sumUsed / sumAll) * 100;  fprintf('[ %g ] %% of (non-zero) eigenvalues retained.\n', retained);end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function newMatrix = selcol(oldMatrix, maskVector);% newMatrix = selcol(oldMatrix, maskVector);%% Selects the columns of the matrix that marked by one in the given vector.% The maskVector is a column vector.% 15.3.1998if size(maskVector, 1) ~= size(oldMatrix, 2),  error ('The mask vector and matrix are of uncompatible size.');endnumTaken = 0;for i = 1 : size (maskVector, 1),  if maskVector(i, 1) == 1,    takingMask(1, numTaken + 1) = i;    numTaken = numTaken + 1;  endendnewMatrix = oldMatrix(:, takingMask);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
老司机午夜精品| 午夜精品123| 欧美精品精品一区| 色综合亚洲欧洲| 国产精品性做久久久久久| 美国十次了思思久久精品导航| 亚洲成在人线在线播放| 亚洲综合久久av| 一区二区三区在线播放| 亚洲女人的天堂| 亚洲天堂a在线| 1024成人网色www| 亚洲欧美日韩国产综合| 亚洲人成精品久久久久| 亚洲人成网站影音先锋播放| 国产精品人成在线观看免费| 中文字幕欧美激情一区| 国产精品理论片在线观看| 中文字幕一区日韩精品欧美| 中文字幕一区二区在线观看| 国产精品视频看| 亚洲图片另类小说| 亚洲国产综合色| 日韩福利视频网| 激情久久五月天| 懂色av一区二区三区免费观看| www.视频一区| 欧美伊人久久久久久午夜久久久久| 精品视频色一区| 日韩精品一区二区在线| 国产欧美精品一区二区三区四区| 中文字幕第一页久久| 亚洲欧美在线视频观看| 亚洲精品少妇30p| 日本大胆欧美人术艺术动态| 国产一区二区三区黄视频 | 欧美日韩国产首页在线观看| 欧美日韩精品一区二区三区四区 | 欧美视频中文一区二区三区在线观看 | 国产精选一区二区三区| 91无套直看片红桃| 欧美在线三级电影| 精品免费日韩av| 日韩毛片高清在线播放| 美女高潮久久久| 成人性生交大片免费看中文| 欧美日韩一区三区四区| 国产农村妇女毛片精品久久麻豆 | 91香蕉视频黄| 欧美一区二区私人影院日本| 国产欧美日韩中文久久| 丝袜美腿亚洲综合| 成人18视频在线播放| 日韩一区二区在线免费观看| 亚洲国产精品二十页| 日韩经典中文字幕一区| 色综合色狠狠综合色| 精品国产亚洲一区二区三区在线观看| 日韩一区欧美小说| 精品综合免费视频观看| 欧美日韩一区二区在线观看| 国产精品无遮挡| 久草中文综合在线| 在线观看日韩高清av| 中文字幕一区二区三区不卡| 狠狠色狠狠色综合| 欧美一区二区在线看| 亚洲国产毛片aaaaa无费看| voyeur盗摄精品| 久久嫩草精品久久久精品一| 青娱乐精品视频| 欧美日韩五月天| 一区二区三区中文字幕精品精品| 丁香天五香天堂综合| 欧美大度的电影原声| 日韩影视精彩在线| 欧美性xxxxxx少妇| 一区二区三区精品在线| 91在线丨porny丨国产| 中文字幕成人av| 国产成人8x视频一区二区| 26uuuu精品一区二区| 久久成人综合网| 日韩亚洲欧美成人一区| 天堂蜜桃一区二区三区 | 亚洲乱码国产乱码精品精的特点 | 国产mv日韩mv欧美| 国产亚洲欧美在线| 成人黄色av网站在线| 欧美激情综合网| 懂色av一区二区夜夜嗨| 国产精品色哟哟| 97久久人人超碰| 亚洲欧美一区二区久久| 在线观看网站黄不卡| 丝袜a∨在线一区二区三区不卡| 91福利在线观看| 亚洲成人av电影在线| 欧美一级高清片| 国内久久精品视频| 国产精品私房写真福利视频| 99精品视频在线观看| 尤物在线观看一区| 欧美一区二区三区在线视频| 国产一区久久久| 国产精品电影一区二区三区| 色综合天天在线| 天堂va蜜桃一区二区三区漫画版| 日韩免费观看2025年上映的电影| 国产一区二区视频在线播放| 国产精品久久久久久久久久久免费看| 一本色道a无线码一区v| 日韩在线观看一区二区| 国产色91在线| 精品视频一区三区九区| 国内成人自拍视频| 欧美韩国日本不卡| 欧美中文字幕一区| 狠狠色综合色综合网络| 亚洲欧洲制服丝袜| 日韩欧美激情一区| 91视频在线观看免费| 精品一区二区在线免费观看| 成人欧美一区二区三区视频网页| 9191国产精品| 波多野结衣在线aⅴ中文字幕不卡| 亚洲丰满少妇videoshd| 日本一区二区成人在线| 91精品国产91久久综合桃花| eeuss鲁一区二区三区| 蜜桃av一区二区| 亚洲精品乱码久久久久| 国产日韩欧美在线一区| 91精品国产91久久久久久一区二区| www.综合网.com| 久久av资源网| 午夜久久福利影院| 国产精品成人免费精品自在线观看| 91麻豆精品久久久久蜜臀| 99久久伊人网影院| 狠狠色伊人亚洲综合成人| 午夜精品爽啪视频| 亚洲欧美日韩综合aⅴ视频| 国产人成亚洲第一网站在线播放| 欧美日产国产精品| 色综合久久综合网| 波多野结衣一区二区三区| 国产精品66部| 精品综合久久久久久8888| 三级亚洲高清视频| 亚洲图片欧美一区| 亚洲猫色日本管| 一区二区中文字幕在线| 亚洲国产精品ⅴa在线观看| 久久青草国产手机看片福利盒子| 91精品免费在线| 欧美日本一区二区| 欧美日韩视频在线第一区 | av午夜精品一区二区三区| 国产一区二区三区四| 麻豆成人免费电影| 日精品一区二区| 视频一区国产视频| 日本亚洲最大的色成网站www| 亚洲成在人线在线播放| 五月天亚洲精品| 亚洲国产cao| 日韩电影在线一区二区| 蜜臀久久久99精品久久久久久| 亚洲高清久久久| 日韩av一区二区在线影视| 免费成人结看片| 久久激情综合网| 国产一区二区三区黄视频| 国产iv一区二区三区| 成人深夜福利app| 色美美综合视频| 欧美喷水一区二区| 精品国精品国产尤物美女| 国产情人综合久久777777| 亚洲欧洲日本在线| 亚洲综合久久av| 欧美96一区二区免费视频| 国产一区二区三区av电影| www.亚洲精品| 欧美日韩一区二区三区在线 | 日韩精品自拍偷拍| 久久精品日韩一区二区三区| 亚洲欧洲日本在线| 天堂一区二区在线| 丰满岳乱妇一区二区三区| 色老头久久综合| 91精品国产福利在线观看| 国产日韩欧美不卡| 亚洲国产综合人成综合网站| 国产乱色国产精品免费视频| 91美女精品福利| 欧美一区二区播放| 亚洲欧美日韩国产综合| 激情综合网激情|