Skip to content

Commit

Permalink
[coordinates] bugfix PCA (subtract mean)
Browse files Browse the repository at this point in the history
  • Loading branch information
jouno committed Feb 22, 2015
1 parent 7942eac commit 265a9b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyemma/coordinates/transform/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,6 @@ def map(self, X):
:param X: the input data
:return: the projected data
"""
Y = np.dot(X, self.R[:, 0:self.output_dimension])
X_meanfree = X - self.mu
Y = np.dot(X_meanfree, self.R[:, 0:self.output_dimension])
return Y

0 comments on commit 265a9b1

Please sign in to comment.