diff --git a/pyemma/coordinates/transform/pca.py b/pyemma/coordinates/transform/pca.py index 07b103a85..ce5b69587 100644 --- a/pyemma/coordinates/transform/pca.py +++ b/pyemma/coordinates/transform/pca.py @@ -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