Prev: if d = x^2, and x=[0,0;1,0] then why is eval(d) not equal to
Next: ???index exceed matrix dimension
From: Giorgos Tzampanakis on 27 Mar 2010 16:13 How can I use the loadings returned by princomp to project new data to the space given by them? For example, I have a set of data that I give to princomp and obtain the loadings and the projected data to the PCA space. Now I have a new set of data, and I want to project it to the same space. How can I do that?
From: Doug Schwarz on 27 Mar 2010 17:37 In article <Xns9D48CDD33DC77fdnbgui7uhu5h8hrnuio(a)127.0.0.1>, Giorgos Tzampanakis <gt67(a)hw.ac.uk> wrote: > How can I use the loadings returned by princomp to project new > data to the space given by them? > > For example, I have a set of data that I give to princomp and > obtain the loadings and the projected data to the PCA space. Now > I have a new set of data, and I want to project it to the same > space. How can I do that? [coeff,scores_x] = princomp(x); scores_y = y*coeff; You might want to subtract the column means from y first. -- Doug Schwarz dmschwarz&ieee,org Make obvious changes to get real email address.
|
Pages: 1 Prev: if d = x^2, and x=[0,0;1,0] then why is eval(d) not equal to Next: ???index exceed matrix dimension |