MATLAB主成分分析相关

 
matlab主成分分析的函数是 princomp,位于statistical tool box里。它的用法如下 :
[coeff, score, latent, tsquare] = princomp(x,econFlag)
x是样本矩阵,行是样本,列是特征。设 x为  N*P.
ecnoFlag:默认是0
% When X has more variables than observations, the default behavior is to
% return all the pc's, even those that have zero variance.  When econFlag
% is 'econ', those will not be returned.
X是原始数据军阵
coeff  P*P,第i列对应第i个主成变换分向量
score:N*P,每个样本的主成分表示
latent: coeff的协方差矩阵,也就是X的散度矩阵的特征值组成的对角阵
tsquare:returns Hotelling's  T-squared statistic for each observation in X.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值