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

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

?? pcamat.m

?? FastICA25--快速獨立分量分解算法
?? 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);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
9人人澡人人爽人人精品| 色妹子一区二区| 综合久久一区二区三区| 欧美高清视频在线高清观看mv色露露十八| 激情小说欧美图片| 一区二区三区精密机械公司| 精品国产一区二区三区久久久蜜月| www.久久精品| 韩国女主播成人在线| 五月婷婷综合在线| 亚洲欧洲日韩一区二区三区| 日韩午夜在线观看视频| 欧美亚洲一区三区| 99re这里都是精品| 国产成人免费视| 毛片不卡一区二区| 日韩精品一区第一页| 亚洲综合在线第一页| 中文字幕一区二区三区不卡在线| 精品成a人在线观看| 日韩一区二区三区免费看| 在线观看精品一区| 91丨porny丨国产| 粗大黑人巨茎大战欧美成人| 国产自产视频一区二区三区| 日本欧美一区二区三区| 亚洲韩国精品一区| 一区二区三区高清在线| 亚洲黄色免费电影| 亚洲女性喷水在线观看一区| 中文字幕中文乱码欧美一区二区| 久久久久久免费毛片精品| 日韩女优av电影| 日韩欧美视频一区| 欧美岛国在线观看| 欧美一区二视频| 日韩欧美亚洲国产另类| 欧美成人video| 精品久久久久久亚洲综合网| 精品国产伦一区二区三区观看方式 | 在线日韩国产精品| 99国产精品久久久久久久久久久 | 午夜久久久影院| 亚洲综合色噜噜狠狠| 一区二区三区四区亚洲| 亚洲午夜久久久久| 视频一区中文字幕国产| 香蕉久久夜色精品国产使用方法| 婷婷激情综合网| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲国产成人av好男人在线观看| 亚洲午夜视频在线观看| 亚洲图片欧美综合| 蜜臀久久久久久久| 精品一区中文字幕| 国产成人精品aa毛片| 成人av影视在线观看| 91在线免费看| 欧美日韩高清影院| 日韩一区二区三区在线视频| 久久综合九色综合97_久久久| 久久亚洲私人国产精品va媚药| 久久婷婷国产综合国色天香 | 亚洲天堂2016| 亚洲高清在线精品| 国产在线观看免费一区| 成人免费视频国产在线观看| 91网站最新网址| 欧美精品日韩精品| 久久免费看少妇高潮| 亚洲欧美偷拍三级| 免费观看日韩电影| 波多野结衣欧美| 欧美日韩电影在线| 久久久高清一区二区三区| 中文字幕一区二区三区视频| 亚洲成人手机在线| 国产成人在线影院 | 正在播放一区二区| 国产喂奶挤奶一区二区三区| 亚洲狠狠爱一区二区三区| 黄色资源网久久资源365| 色偷偷88欧美精品久久久| 日本高清不卡aⅴ免费网站| 在线不卡一区二区| 国产精品女人毛片| 肉肉av福利一精品导航| 成人激情免费视频| 日韩欧美一级特黄在线播放| 亚洲视频一区二区免费在线观看 | 国内精品视频一区二区三区八戒| gogogo免费视频观看亚洲一| 欧美一级免费大片| 亚洲欧美另类图片小说| 韩日av一区二区| 欧美日韩国产免费一区二区| 国产精品日韩成人| 九九精品视频在线看| 91精品办公室少妇高潮对白| 久久免费视频色| 日韩av中文字幕一区二区| 99久久免费精品高清特色大片| 日韩一区二区在线观看视频| 一区二区三区中文免费| 成人免费视频视频在线观看免费 | 色哟哟欧美精品| 国产天堂亚洲国产碰碰| 日本美女一区二区| 欧美午夜精品免费| 亚洲色图视频网站| 粉嫩久久99精品久久久久久夜| 欧美一区二区三区人| 亚洲丰满少妇videoshd| 99精品国产一区二区三区不卡 | 亚洲一区二区视频在线| caoporm超碰国产精品| 久久久久久毛片| 免费不卡在线视频| 欧美色爱综合网| 亚洲黄色小说网站| 91性感美女视频| 自拍偷拍国产亚洲| 成人av免费在线播放| 国产香蕉久久精品综合网| 国产在线一区观看| 精品99999| 激情综合色综合久久综合| 欧美一区二区三区色| 亚洲一二三区不卡| 欧美色综合网站| 亚洲第一激情av| 777午夜精品免费视频| 日韩高清一级片| 日韩视频在线观看一区二区| 日本免费在线视频不卡一不卡二| 欧美日韩免费观看一区三区| 亚洲超碰精品一区二区| 欧美日韩国产另类不卡| 亚洲制服丝袜av| 欧美亚洲动漫制服丝袜| 亚洲aaa精品| 欧美一区二区人人喊爽| 免费看日韩精品| 久久影音资源网| 成人自拍视频在线| 亚洲特级片在线| 欧美性欧美巨大黑白大战| 亚洲综合男人的天堂| 欧美日韩视频在线观看一区二区三区 | 日韩欧美在线影院| 国产综合久久久久影院| 欧美国产精品一区| 91老师片黄在线观看| 亚洲一区二区三区四区在线免费观看| 91久久精品国产91性色tv| 午夜视频在线观看一区| 日韩一区二区精品在线观看| 极品少妇一区二区| 国产精品久久久久久久久免费丝袜| 91色视频在线| 视频一区免费在线观看| 久久―日本道色综合久久| 成人性色生活片| 一区二区欧美在线观看| 欧美福利电影网| 国产福利一区二区三区视频在线 | 国产精品夜夜爽| 亚洲欧洲av在线| 欧美日韩免费视频| 国产一级精品在线| 亚洲少妇最新在线视频| 欧美一区二区在线免费播放| 国产大陆精品国产| 一区二区三区在线免费| 日韩免费观看高清完整版| 成人avav影音| 日本欧美一区二区在线观看| 国产欧美一区二区三区沐欲| 在线观看日韩精品| 国产经典欧美精品| 亚洲国产精品久久不卡毛片| 欧美变态tickle挠乳网站| 色八戒一区二区三区| 美国毛片一区二区| 亚洲激情中文1区| 久久先锋影音av| 欧美老人xxxx18| 99re免费视频精品全部| 久久国产生活片100| 亚洲免费伊人电影| 久久久久久久久久久久电影| 欧美日韩精品欧美日韩精品一综合| 国产精品自拍一区| 亚洲www啪成人一区二区麻豆| 国产欧美精品国产国产专区| 欧美二区三区91| 一本大道av伊人久久综合| 国产精品综合视频| 日韩高清不卡一区| 亚洲一区二区三区视频在线播放|