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='