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

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

?? splithalft3.m

?? 這是一個三面陣列的數學工具軟件
?? M
字號:
n% splithalft3.m
% Procedure to compute splits, analyze them and compare them.
% Input:
%		X: original data matrix
%		n,m,p: sizes of data
%	   r1,r2,r3: sizes of core
%		centopt (see tucker3.m)
%		normopt (see tucker3.m)
%     renormmode (see tucker3.m)
%		wa_rel,wb_rel,wc_rel (see tucker3.m)
%
% uses phi.m c.m 


disp('  ');
disp(' This procedure performs a SPLIT-HALF analysis on X ');
disp('  ');
disp(' NOTE: ');
disp(' 1. In SPLIT-HALF analysis, the A-mode is taken as "replication mode"');
disp('    (which means that A-mode entitites are considered a random sample');
disp('    if this does not make sense, you should rearrange your data so that the A-mode is a replication mode)');
disp(' 2. The matrix X is modified by the program, so be careful in using X again after this analysis!');
disp('  ');

disp(' The splitting into two halves can be done randomly (default), or into odd vs. even sequence numbers');
cc=input(' If you prefer odd/even split, specify "1":  ');
if isempty(cc),cc=0;end;
if cc==0
   % create random splits
  w=rand(n,1);
  [ww,wi]=sort(w);
end;
if cc==1,wi=[1:2:n 2:2:n];end;
n1=ceil(n/2);
n2=n-n1;
X1=X(wi(1:n1),:);
X2=X(wi(n1+1:n),:);

ccc=0;
disp('  ');
disp(' You will now enter the split half procedure with the options specified so far');
disp(' However, you may want to modify certain choices here (rather than rerunning the full tucker3.m)');
ccc=input(' Do you want to modify certain choices? If so, Enter "1": ');
disp('  ');
if ccc==1
  disp(' Centering:'); 
  disp(' 1= across A-mode ');
  disp(' 2= across B-mode ');
  disp(' 3= across C-mode ');
  disp(' 12= across A-mode and across B-mode ');
  disp(' 13= across A-mode and across C-mode ');
  disp(' 23= across B-mode and across C-mode ');
  fprintf(' Your centering choice is %g \n',centopt);
  cc=input(' If you want to change it, specify "1" ');
  if isempty(cc),cc=0;end;
  if cc==1
     centopt=input(' Specify Centering option: ');
  end;
  disp('  ');
  disp(' Normalizing:');
  disp(' 1= within A-mode ');
  disp(' 2= within B-mode ');
  disp(' 3= within C-mode ');
  fprintf(' Your normalizing choice is %g \n',normopt);
  cc=input(' If you want to change it, specify "1" ');
  if isempty(cc),cc=0;end;
  if cc==1,norm=input(' Specify Normalizing option ');end;
  disp('  ');
  if renormmode==1,disp(' Your choice was to renormalize A-mode ');end;
  if renormmode==2,disp(' Your choice was to renormalize B-mode ');end;
  if renormmode==3,disp(' Your choice was to renormalize C-mode ');end;
  if renormmode~=1 & renormmode~=2 & renormmode~=3,disp(' Your choice was not to renormalize solution');end;
  cc=input(' If you want to change it, specify "1" ');
  if isempty(cc),cc=0;end;
  if cc==1
     renormmode=input(' Which mode do you want to renormalize? Enter 1 (=A), 2 (=B) or 3 (=C): ');
  end;
  disp('  ');
  fprintf(' Numbers of components for A, B and C are: %g, %g, %g \n',r1,r2,r3);
  cc=input(' If you want to change these, specify "1" ');
  if isempty(cc),cc=0;end;
  if cc==1,
    disp('  ');
    r1=input(' How many A-mode components do you want to use?  ');
    r2=input(' How many B-mode components do you want to use?  ');
    r3=input(' How many C-mode components do you want to use?  ');
  end;
  disp('  ');
  disp(' Additional random starts?');
  fprintf(' Your choice was to use %g additional random starts in the analysis\n',addanal);
  cc=input(' If you want to change it, specify "1" ');
  if isempty(cc),cc=0;end;
  if cc==1,addanal=input(' Specify number of additional random starts ');end;
  disp('  ');
  fprintf(' Relative simplicity rotation weights for A, B and C are: %g, %g, %g \n',wa_rel,wb_rel,wc_rel);
  cc=input(' If you want to change these, specify "1" ');
  if isempty(cc),cc=0;end;
  if cc==1,
    wa_rel=input(' Specify relative weight for simplicity of A-mode  ');
    wb_rel=input(' Specify relative weight for simplicity of B-mode  ');
    wc_rel=input(' Specify relative weight for simplicity of C-mode  ');
  end;
  disp('  ');
end;

disp(' Analysis of FULL DATA');
disp('  ');
disp('  ');
% Full data analysis (reference)
% Full data Preprocessing 
cc=centopt;
if cc==1 | cc==12 | cc==13
   X=cent3(X,n,m,p,1);
   disp(' X has been centered across A-mode');
end;
if cc==2 | cc==12 | cc==23
   X=cent3(X,n,m,p,2);
   disp(' X has been centered across B-mode');
end;
if cc==3 | cc==13 | cc==23
   X=cent3(X,n,m,p,3);
   disp(' X has been centered across C-mode');
end;
cc=normopt;
disp('  ');
if cc==1 
   X=norm3(X,n,m,p,1);
   disp(' X has been normalized within A-mode');
end;
if cc==2 
   X=norm3(X,n,m,p,2);
   disp(' X has been normalized within B-mode');
end;
if cc==3
   X=norm3(X,n,m,p,3);
   disp(' X has been normalized within C-mode');
end;
% Full data analysis 
[A,B,C,H,f,iter,fp,La,Lb,Lc]=tuck3abk(X,n,m,p,r1,r2,r3,0,1e-6);
func=ones(1+addanal,1);
func=fp;
for run=1:addanal
   disp('  ');fprintf(' Run no. %g \n',run+1);disp('  ');
   [Ar,Br,Cr,Hr,fr,iterr,fpr,Lar,Lbr,Lcr]=tuck3abk(X,n,m,p,r1,r2,r3,1,1e-6);
   func(run+1)=fpr;
   if fpr>1.0001*fp % if fit more than .01% better is found, replace solution
      A=Ar;B=Br;C=Cr;H=Hr;f=fr;iter=iterr;fp=fpr;La=Lar;Lb=Lbr;Lc=Lcr;
   end;
   disp('  ');
end;
disp('  ');
if addanal>=1
   disp('  ');disp(' Fit % values from all runs:');disp(' ');
   writescr(func','6.2');disp('  ');
end;
[A,B,C,H]=renormsol(A,B,C,H,renormmode); 
% Full data Rotation
[AS,BT,CU,K,S,T,U,f,f1,f2a,f2b,f2c,func]=varimcoco(A,B,C,H,wa_rel,wb_rel,wc_rel);
disp(' Backnormalize A,B,C, and H');
if renormmode==1
   Ds=diag(sum(AS.^2).^.5);
   AS=AS/Ds;
   K=Ds*K;
end;
if renormmode==2
   Ds=diag(sum(BT.^2).^.5);
   BT=BT/Ds;
   K=K*kron(eye(r3),Ds);
end;
if renormmode==3
   Ds=diag(sum(CU.^2).^.5);
   CU=CU/Ds;
   K=K*kron(Ds,eye(r2));
end;
Afull=AS;
Bfull=BT;
Cfull=CU;
Kfull=K

% Split 1 data analysis (reference)
% Split 1 Preprocessing 
disp(' Analysis of SPLIT 1');
disp('  ');
disp('  ');
n_orig=n;
n=n1;
X_orig=X;
X=X1;
cc=centopt;
if cc==1 | cc==12 | cc==13
   X=cent3(X,n,m,p,1);
   disp(' X has been centered across A-mode');
end;
if cc==2 | cc==12 | cc==23
   X=cent3(X,n,m,p,2);
   disp(' X has been centered across B-mode');
end;
if cc==3 | cc==13 | cc==23
   X=cent3(X,n,m,p,3);
   disp(' X has been centered across C-mode');
end;
cc=normopt;
disp('  ');
if cc==1 
   X=norm3(X,n,m,p,1);
   disp(' X has been normalized within A-mode');
end;
if cc==2 
   X=norm3(X,n,m,p,2);
   disp(' X has been normalized within B-mode');
end;
if cc==3
   X=norm3(X,n,m,p,3);
   disp(' X has been normalized within C-mode');
end;
Xs1=X;
% Split 1 analysis 
[A,B,C,H,f,iter,fp,La,Lb,Lc]=tuck3abk(X,n,m,p,r1,r2,r3,0,1e-6);
func1=ones(1+addanal,1);
func1=fp;
for run=1:addanal
   disp('  ');fprintf(' Run no. %g \n',run+1);disp('  ');
   [Ar,Br,Cr,Hr,fr,iterr,fpr,Lar,Lbr,Lcr]=tuck3abk(X,n,m,p,r1,r2,r3,1,1e-6);
   func1(run+1)=fpr;
   if fpr>1.0001*fp % if fit more than .01% better is found, replace solution
      A=Ar;B=Br;C=Cr;H=Hr;f=fr;iter=iterr;fp=fpr;La=Lar;Lb=Lbr;Lc=Lcr;
   end;
   disp('  ');
end;
disp('  ');
if addanal>=1
   disp('  ');disp(' Fit % values from all runs:');disp(' ');
   writescr(func1','6.2');disp('  ');
end;
disp(' No Postprocessing used in splits; taken care off by reference rotation!');
As1=A;
Bs1=B;
Cs1=C;
Ks1=H;

% Split 2 data analysis (reference)
% Split 2 Preprocessing 
disp(' Analysis of SPLIT 2');
n=n2;
X=X2;
cc=centopt;
if cc==1 | cc==12 | cc==13
   X=cent3(X,n,m,p,1);
   disp(' X has been centered across A-mode');
end;
if cc==2 | cc==12 | cc==23
   X=cent3(X,n,m,p,2);
   disp(' X has been centered across B-mode');
end;
if cc==3 | cc==13 | cc==23
   X=cent3(X,n,m,p,3);
   disp(' X has been centered across C-mode');
end;
cc=normopt;
disp('  ');
if cc==1 
   X=norm3(X,n,m,p,1);
   disp(' X has been normalized within A-mode');
end;
if cc==2 
   X=norm3(X,n,m,p,2);
   disp(' X has been normalized within B-mode');
end;
if cc==3
   X=norm3(X,n,m,p,3);
   disp(' X has been normalized within C-mode');
end;
Xs2=X;
% Split 2 analysis 
[A,B,C,H,f,iter,fp,La,Lb,Lc]=tuck3abk(X,n,m,p,r1,r2,r3,0,1e-6);
func2=ones(1+addanal,1);
func2=fp;
for run=1:addanal
   disp('  ');fprintf(' Run no. %g \n',run+1);disp('  ');
   [Ar,Br,Cr,Hr,fr,iterr,fpr,Lar,Lbr,Lcr]=tuck3abk(X,n,m,p,r1,r2,r3,1,1e-6);
   func2(run+1)=fpr;
   if fpr>1.0001*fp % if fit more than .01% better is found, replace solution
      A=Ar;B=Br;C=Cr;H=Hr;f=fr;iter=iterr;fp=fpr;La=Lar;Lb=Lbr;Lc=Lcr;
   end;
   disp('  ');
end;
disp('  ');
if addanal>=1
   disp('  ');disp(' Fit % values from all runs:');disp(' ');
   writescr(func2','6.2');disp('  ');
end;
disp(' No Postprocessing used in splits; taken care off by reference rotation!');
As2=A;
Bs2=B;
Cs2=C;
Ks2=H;

n=n_orig;
X=X_orig;

% Compute stability indices:
disp(' Rotate towards overall solution');
disp(' ');
Ss1=As1\Afull(wi(1:n1),:);
Ss2=As2\Afull(wi(n1+1:n),:);
Ts1=Bs1\Bfull;
Ts2=Bs2\Bfull;
Us1=Cs1\Cfull;
Us2=Cs2\Cfull;

As1=As1*Ss1;
As2=As2*Ss2;
Bs1=Bs1*Ts1;
Bs2=Bs2*Ts2;
Cs1=Cs1*Us1;
Cs2=Cs2*Us2;
Ks1=Ss1\Ks1/kron(Us1',Ts1');
Ks2=Ss2\Ks2/kron(Us2',Ts2');

disp('  ');
disp(' RESULTS stability analysis');
disp(' Both splits are analyzed and rotated toards solution for full data');
disp(' One can compare complete outcomes for different splits');
disp(' or inspect correlation/congruence coefficients between corresponding columns of component matrices');
disp('  ');
disp(' Split-half solutions for B');
disp(' B''s next to each other, separated by column of 0''s ');
writescr([Bs1 zeros(m,1) Bs2],'6.2');
disp('  ');
disp(' Split-half solutions for C');
disp(' C''s next to each other, separated by column of 0''s ');
writescr([Cs1 zeros(p,1) Cs2],'6.2');
disp('  ');
disp(' Congruences for A in splits and in appropriate part of Afull');
disp('          comp.no.         split1          split2');
writescr([[1:r1]' diag(phi(Afull(wi(1:n1),:),As1)) diag(phi(Afull(wi(n1+1:n),:),As2))],'7.2');

disp(' Correlations for A in splits and in appropriate part of Afull');
disp('          comp.no.         split1          split2');
clear c;
writescr([[1:r1]' diag(phi(c(Afull(wi(1:n1),:)),c(As1))) diag(phi(c(Afull(wi(n1+1:n),:)),c(As2)))],'7.2');
disp('  ');
disp(' Congruence values for B-mode component matrix')
writescr(diag(phi(Bs1,Bs2)),'6.2')
disp(' Congruence values for C-mode component matrix');
writescr(diag(phi(Cs1,Cs2)),'6.2')

disp(' Relatively strong stability check of Core:');
disp(' (simply comparing core matrices for two splits)');
disp('  ');
disp(' Core for split1');
writescr(Ks1,'8.2');
disp(' Core for split2');
writescr(Ks2,'8.2');

disp('  ');
disp(' Weaker but Sufficient stability check of Core:');
disp(' (computing cores in two splits, using full data solutions for A,B and C) ');
disp('  ');
A1=Afull(wi(1:n1),:);
A2=Afull(wi(n1+1:n),:);
Hss1=A1\Xs1;
Hss1=Bfull\permnew(Hss1,r1,m,p);
Hss1=Cfull\permnew(Hss1,r2,p,r1);
Hss1=permnew(Hss1,r3,r1,r2);
Hss2=A2\Xs2;
Hss2=Bfull\permnew(Hss2,r1,m,p);
Hss2=Cfull\permnew(Hss2,r2,p,r1);
Hss2=permnew(Hss2,r3,r1,r2);
disp(' Core for split1');
writescr(Hss1,'8.2');
disp(' Core for split2');
writescr(Hss2,'8.2');
disp(' Core for full data');
writescr(Kfull,'8.2');

disp(' NOTE:');
disp(' For advanced analysis one can further study the results of the splits and ');
disp(' of the full data set');
disp(' Results for A, B, C, and Core of full data are given in Afull, Bfull, Cfull and Kfull');
disp(' Results for splits are given in As1,Bs1,Cs1,Ks1 and As2,Bs2,Cs2,Ks2');
disp(' Results for core in weak stability check are given in Hss1 and Hss2');
disp(' ');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人一区在线观看| 亚洲另类春色国产| 色婷婷综合久久久久中文| 日韩国产高清在线| 中文字幕在线视频一区| 欧美日本一区二区| eeuss鲁片一区二区三区| 免费黄网站欧美| 一区二区三区在线高清| 久久精品欧美一区二区三区麻豆| 色域天天综合网| 国产激情一区二区三区| 日韩不卡一二三区| 亚洲一区成人在线| 自拍偷拍亚洲欧美日韩| 精品国产sm最大网站| 欧美日韩一区精品| 91在线精品一区二区| 国产高清亚洲一区| 经典三级在线一区| 奇米色一区二区| 亚洲电影第三页| 亚洲欧美日韩精品久久久久| 久久蜜桃av一区精品变态类天堂| 在线成人av网站| 欧美在线小视频| 99国产精品国产精品久久| 国产成人av自拍| 国产精品久久久久四虎| www.在线欧美| 国产东北露脸精品视频| 国产一区二区在线看| 日韩av网站免费在线| 午夜精品久久久久久久久久| 亚洲午夜久久久久中文字幕久| 亚洲欧美另类综合偷拍| 日韩一区日韩二区| 亚洲欧美日韩综合aⅴ视频| 国产精品视频看| 国产精品久久精品日日| 中文字幕av一区二区三区免费看| 久久久欧美精品sm网站| 久久精品亚洲国产奇米99| 亚洲精品在线电影| 国产亚洲婷婷免费| 中文字幕免费不卡| 国产精品久久一级| 亚洲图片激情小说| 亚洲黄色免费网站| 亚洲第一狼人社区| 日韩av电影一区| 激情五月播播久久久精品| 国产在线精品一区二区三区不卡 | 丰满岳乱妇一区二区三区| 国产一区亚洲一区| 亚洲国产成人av网| 久久久蜜桃精品| 中文字幕av一区二区三区免费看 | 中文字幕一区二区三区四区| 国产精品天干天干在观线| 国产精品久久久久久久久搜平片 | 亚洲一区二区3| 日本视频在线一区| 国产在线不卡一卡二卡三卡四卡| 国产精品一区二区男女羞羞无遮挡| 岛国一区二区三区| 91视频.com| 884aa四虎影成人精品一区| 日韩一级免费观看| 亚洲国产精品黑人久久久| 一区二区三区91| 免费成人深夜小野草| 成人精品视频一区| 欧美私人免费视频| 2020国产精品自拍| 亚洲激情成人在线| 久久99精品久久久久久动态图| 国产91精品精华液一区二区三区| 99免费精品视频| 欧美久久久久中文字幕| 久久久蜜桃精品| 亚洲国产一区二区三区| 久久99九九99精品| 色综合久久综合网97色综合| 日韩一本二本av| 成人欧美一区二区三区1314| 无码av中文一区二区三区桃花岛| 国产一区二区三区电影在线观看 | 中文字幕视频一区| 偷拍日韩校园综合在线| 国产999精品久久久久久 | 国产日产亚洲精品系列| 亚洲在线免费播放| 国产成人精品亚洲日本在线桃色 | 夜夜精品浪潮av一区二区三区| 激情综合五月天| 欧美专区日韩专区| 国产肉丝袜一区二区| 肉色丝袜一区二区| 97se亚洲国产综合自在线观| 精品免费一区二区三区| 亚洲成a天堂v人片| 99久久夜色精品国产网站| 日韩视频在线观看一区二区| 亚洲男人都懂的| 国产精品资源站在线| 欧美精品日韩一区| 亚洲欧洲精品天堂一级| 国内精品嫩模私拍在线| 在线电影院国产精品| 亚洲精品精品亚洲| 成人av影院在线| 26uuu国产在线精品一区二区| 亚洲bt欧美bt精品777| 91原创在线视频| 日本一区二区三区dvd视频在线 | 国产一区二区看久久| 欧美高清视频在线高清观看mv色露露十八| 国产精品久久久久久久久搜平片 | 免费高清成人在线| 欧美三级日韩三级国产三级| 亚洲欧洲精品一区二区精品久久久| 国产一区二区三区精品视频| 日韩视频国产视频| 日韩av电影免费观看高清完整版 | 成人免费视频caoporn| 欧美tickle裸体挠脚心vk| 天天av天天翘天天综合网 | 国产精品一区二区在线观看不卡| 欧美男人的天堂一二区| 亚洲国产另类精品专区| 日本韩国精品在线| 亚洲三级视频在线观看| 99re在线视频这里只有精品| 国产精品久久久久影院色老大| 国产一区二区三区在线观看免费 | 另类小说一区二区三区| 91精品国产色综合久久ai换脸 | 久久国产精品72免费观看| 日韩一区二区在线观看视频播放| 香蕉久久夜色精品国产使用方法 | 日韩精品最新网址| 另类调教123区 | 国产精品青草综合久久久久99| 国产精品456| 日本一区二区免费在线| 丁香六月综合激情| 国产精品国产三级国产a | 精品裸体舞一区二区三区| 免费在线看成人av| www日韩大片| 丁香婷婷综合色啪| 中文字幕综合网| 欧美专区日韩专区| 日本成人在线电影网| 精品88久久久久88久久久| 国产精品一线二线三线| 国产精品初高中害羞小美女文| 91在线视频网址| 视频一区欧美精品| 久久久综合网站| 91片黄在线观看| 亚洲v中文字幕| 久久综合久久久久88| 成人免费毛片高清视频| 一卡二卡欧美日韩| 日韩天堂在线观看| 国产v综合v亚洲欧| 亚洲激情图片小说视频| 日韩精品一区二区三区中文不卡| 国产一区美女在线| 亚洲婷婷综合久久一本伊一区 | 国产精品色婷婷| 色94色欧美sute亚洲13| 久久成人久久爱| 成人欧美一区二区三区白人| 欧美精品黑人性xxxx| 国产成人日日夜夜| 亚洲国产欧美日韩另类综合| 久久综合国产精品| 色噜噜久久综合| 另类欧美日韩国产在线| 亚洲精品免费在线| 精品国产乱码久久久久久1区2区 | 东方aⅴ免费观看久久av| 亚洲一区在线视频观看| 久久久噜噜噜久久人人看| 在线观看日韩毛片| 国产一区免费电影| 三级一区在线视频先锋 | 在线看日本不卡| 国产精品资源在线看| 婷婷一区二区三区| 国产精品网站一区| 日韩欧美一区二区不卡| 色综合天天狠狠| 国产成人av电影在线| 无吗不卡中文字幕| 亚洲视频免费在线| 国产亚洲精品精华液|