bugfix on P scale
This commit is contained in:
parent
2cfa3ca415
commit
37feb1c25b
|
@ -77,7 +77,7 @@ class PCA(Model):
|
||||||
jk_segments = pca_jkP(self.model['E0'], aopt, n_sets)
|
jk_segments = pca_jkP(self.model['E0'], aopt, n_sets)
|
||||||
Pcal = self.model['P'][:,:aopt]
|
Pcal = self.model['P'][:,:aopt]
|
||||||
# add the scale to P
|
# add the scale to P
|
||||||
tnorm = scipy.apply_along_axis(norm, 0, self.model['T'])
|
tnorm = scipy.apply_along_axis(norm, 0, self.model['T'][:,:aopt])
|
||||||
Pcal = Pcal*tnorm
|
Pcal = Pcal*tnorm
|
||||||
tsq = hotelling(jk_segments, Pcal, p_center,
|
tsq = hotelling(jk_segments, Pcal, p_center,
|
||||||
cov_center, alpha, crot, strict)
|
cov_center, alpha, crot, strict)
|
||||||
|
|
Reference in New Issue