附录:load pz.txt
mu=mean(pz);sig=std(pz); rr=corrcoef(pz); data=zscore(pz); n=6;m=1;
x0=pz(:,1:n);y0=pz(:,n+1:end); e0=data(:,1:n);f0=data(:,n+1:end); num=size(e0,1); chg=eye(n); for i=1:n
matrix=e0'*f0*f0'*e0; [vec,val]=eig(matrix); val=diag(val);
[val,ind]=sort(val,'descend'); w(:,i)=vec(:,ind(1)); w_star(:,i)=chg*w(:,i); t(:,i)=e0*w(:,i);
alpha=e0'*t(:,i)/(t(:,i)'*t(:,i)); chg=chg*(eye(n)-w(:,i)*alpha'); e=e0-t(:,i)*alpha'; e0=e;
beta=[t(:,1:i),ones(num,1)]\\f0; beta(end,:)=[];
cancha=f0-t(:,1:i)*beta; ss(i)=sum(sum(cancha.^2)); for j=1:num t1=t(:,1:i);f1=f0;
she_t=t1(j,:);she_f=f1(j,:); t1(j,:)=[];f1(j,:)=[];
betal=[t1,ones(num-1,1)]\\f1; betal(end,:)=[];
cancha=she_f-she_t*betal; press_i(j)=sum(cancha.^2); end
press(i)=sum(press_i); if i>1
Q_h2(i)=1-press(i)/ss(i-1); else
Q_h2(1)=1; end
if Q_h2(i)<0.0975
fprintf('提出的成分个数 r=%d',i); r=i; break
13
end end
beta_z=[t(:,1:r),ones(num,1)]\\f0; beta_z(end,:)=[];
xishu=w_star(:,1:r)*beta_z;
mu_x=mu(1:n);mu_y=mu(n+1:end); sig_x=sig(1:n);sig_y=sig(n+1:end); for i=1:m
ch0(i)=mu_y(i)-mu_x./sig_x*sig_y(i)*xishu(:,i); end
for i=1:m
xish(:,i)=xishu(:,i)./sig_x'*sig_y(i); end
sol=[ch0;xish]
save mydata x0 y0 num xishu ch0 xish
目 录
1概述 ..................................... 1.1自然状况 ............................... 1.2燃料消费情况 ........................... 2编制依据 ................................. 3规划方案 ................................. 4市场前景 ................................. 5筹资渠道及投资构成 ....................... 5.1筹资渠道 ............................... 5.2投资构成 ............................... 6财务评价及效益分析 ....................... 6.1 主要参数及测算依据 ..................... 6.2 效益分析 ............................... 7 评价结论 .................................
14
错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。错误!未定义书签。
15