From 8e607c7b1a7ea353a04c448dd7cc8fd28844cfa8 Mon Sep 17 00:00:00 2001 From: flatberg Date: Wed, 31 Jan 2007 11:57:04 +0000 Subject: [PATCH] bugfixed scaling issues --- fluents/lib/cx_stats.py | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/fluents/lib/cx_stats.py b/fluents/lib/cx_stats.py index 31d0fe4..078df5f 100644 --- a/fluents/lib/cx_stats.py +++ b/fluents/lib/cx_stats.py @@ -9,7 +9,8 @@ from select_generators import shuffle_1d from engines import * import time -def hotelling(P, Pfull, p_center='med', cov_center='med', + +def hotelling(Pcv, P, p_center='med', cov_center='med', alpha=0.3, crot=True, strict=False, metric=None): """Returns regularized hotelling T^2. @@ -20,35 +21,35 @@ def hotelling(P, Pfull, p_center='med', cov_center='med', alpha -- regularisation crot -- rotate submodels toward full? strict -- only rotate 90 degree ? - metric -- inverse metric matrix (if P and Pfull from metric pca/pls) + metric -- inverse metric matrix (if Pcv and P from metric pca/pls) """ - m, n = Pfull.shape + m, n = P.shape if metric==None: metric = eye(m, dtype='