| 1 |
#ifndef _CCA_and_Correlation_h_ |
| 2 |
#define _CCA_and_Correlation_h_ |
| 3 |
/* CCA_and_Correlation.h |
| 4 |
* |
| 5 |
* Copyright (C) 1993-2020 David Weenink |
| 6 |
* |
| 7 |
* This code is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 2 of the License, or (at |
| 10 |
* your option) any later version. |
| 11 |
* |
| 12 |
* This code is distributed in the hope that it will be useful, but |
| 13 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
* General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
/* |
| 22 |
djmw 2001 |
| 23 |
djmw 20020516 GPL header |
| 24 |
djmw 20110307 Latest modification. |
| 25 |
*/ |
| 26 |
|
| 27 |
#include "CCA.h" |
| 28 |
#include "Correlation.h" |
| 29 |
|
| 30 |
autoTableOfReal CCA_Correlation_factorLoadings (CCA me, Correlation thee); |
| 31 |
/* |
| 32 |
Get the canonical factor loadings (also structure correlation coefficients), |
| 33 |
the correlation of a canonical variable with an original variable. |
| 34 |
*/ |
| 35 |
|
| 36 |
double CCA_Correlation_getVarianceFraction (CCA me, Correlation thee, int x_or_y, integer canonicalVariate_from, integer canonicalVariate_to); |
| 37 |
/* |
| 38 |
Get the fraction of variance extracted from the dependent/independent set by the canonical variate range. |
| 39 |
*/ |
| 40 |
|
| 41 |
double CCA_Correlation_getRedundancy_sl (CCA me, Correlation thee, int x_or_y, integer canonicalVariate_from, integer canonicalVariate_to); |
| 42 |
/* |
| 43 |
The Stewart-Love redundancy is the fraction of variance extracted by the canonical variate times |
| 44 |
the fraction of shared variance between the canonical variate and the corresponding canonical variate |
| 45 |
of the other set. |
| 46 |
redundancy = VarianceFraction * (canonical correlation)^2 |
| 47 |
*/ |
| 48 |
|
| 49 |
#endif /* _CCA_and_Correlation_h_ */ |