Debian Codegraph @

dwtools/PCA.h

raw symbols SCIP
1 #cxx . . $ `<file>/dwtools/PCA.h`/ifndef _PCA_h_
2 #define _PCA_h_cxx . . $ `dwtools/PCA.h:2:9`!
3 /* PCA.h
4 *
5 * Principal Component Analysis
6 *
7 * Copyright (C) 1993-2019, 2023 David Weenink
8 *
9 * This code is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or (at
12 * your option) any later version.
13 *
14 * This code is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this work. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23 /*
24 djmw 20020813 GPL header
25 djmw 20110306 Latest modification.
26 */
27
28
29 #include "Matrix.h"cxx . . $ `<file>/fon/Matrix.h`/
30 #include "TableOfReal.h"cxx . . $ `<file>/stat/TableOfReal.h`/
31 #include "Configuration.h"cxx . . $ `<file>/dwtools/Configuration.h`/
32 #include "Eigen.h"cxx . . $ `<file>/dwsys/Eigen.h`/
33
34 #include "PCA_def.h"cxx . . $ `<file>/dwtools/PCA_def.h`/
35
36 autoPCAcxx . . $ autoPCA# PCA_createcxx . . $ PCA_create(1cb1fdb3b03da640). (integercxx . . $ integer# numberOfComponents, integercxx . . $ integer# dimension);
37
38 void PCA_setNumberOfObservationscxx . . $ PCA_setNumberOfObservations(93fd627eec6b6386). (PCAcxx . . $ PCA# me, integercxx . . $ integer# numberOfObservations);
39
40 integercxx . . $ integer# PCA_getNumberOfObservationscxx . . $ PCA_getNumberOfObservations(507113e12a0d07a5). (PCAcxx . . $ PCA# me);
41
42 autoPCAcxx . . $ autoPCA# TableOfReal_to_PCA_byRowscxx . . $ TableOfReal_to_PCA_byRows(98e819603b195975). (TableOfRealcxx . . $ TableOfReal# me);
43
44 autoEigencxx . . $ autoEigen# PCA_to_Eigencxx . . $ PCA_to_Eigen(cd6e88d89f09dc9d). (PCAcxx . . $ PCA# me);
45
46 /* Calculate PCA of M'M */
47
48 autoPCAcxx . . $ autoPCA# Matrix_to_PCA_byRowscxx . . $ Matrix_to_PCA_byRows(37c95bb7c4499ca6). (Matrixcxx . . $ Matrix# me);
49 autoPCAcxx . . $ autoPCA# Matrix_to_PCA_byColumnscxx . . $ Matrix_to_PCA_byColumns(37c95bb7c4499ca6). (Matrixcxx . . $ Matrix# me);
50 /* Calculate PCA of M'M */
51
52 void PCA_getEqualityOfEigenvaluescxx . . $ PCA_getEqualityOfEigenvalues(df1ee63c898169e8). (PCAcxx . . $ PCA# me, integercxx . . $ integer# from, integercxx . . $ integer# to, int conservative, double *out_prob, double *out_chisq, double *out_df);
53 /* Morrison, Multivariate statistical methods, page 336 */
54
55 autoTableOfRealcxx . . $ autoTableOfReal# PCA_TableOfReal_to_TableOfReal_projectRowscxx . . $ PCA_TableOfReal_to_TableOfReal_projectRows(62d48fe5e3de01b1). (PCAcxx . . $ PCA# me, TableOfRealcxx . . $ TableOfReal# thee, integercxx . . $ integer# numberOfDimensionsToKeep);
56 autoConfigurationcxx . . $ autoConfiguration# PCA_TableOfReal_to_Configurationcxx . . $ PCA_TableOfReal_to_Configuration(e6b9f4519f587579). (PCAcxx . . $ PCA# me, TableOfRealcxx . . $ TableOfReal# thee, integercxx . . $ integer# numberOfDimensions);
57
58 autoTableOfRealcxx . . $ autoTableOfReal# PCA_TableOfReal_to_TableOfReal_zscorescxx . . $ PCA_TableOfReal_to_TableOfReal_zscores(62d48fe5e3de01b1). (PCAcxx . . $ PCA# me, TableOfRealcxx . . $ TableOfReal# thee, integercxx . . $ integer# numberOfDimensions);
59
60 double PCA_TableOfReal_getFractionVariancecxx . . $ PCA_TableOfReal_getFractionVariance(631cfefcf9f58455). (PCAcxx . . $ PCA# me, TableOfRealcxx . . $ TableOfReal# thee, integercxx . . $ integer# from, integercxx . . $ integer# to);
61 /* Get fraction variance of the table projected in the pca-space.
62 Shorthand for projecting the Covariance of the TableOfReal on the PCA-space
63 and querying the projected Covariance for 'fraction variance'.
64 */
65
66 autoTableOfRealcxx . . $ autoTableOfReal# PCA_Configuration_to_TableOfReal_reconstructcxx . . $ PCA_Configuration_to_TableOfReal_reconstruct(e8394dc74dbc39ce). (PCAcxx . . $ PCA# me, Configurationcxx . . $ Configuration# thee);
67 /* Reconstruct the original TableOfReal from the PCA and the Configuration */
68
69 autoTableOfRealcxx . . $ autoTableOfReal# PCA_to_TableOfReal_reconstruct1cxx . . $ PCA_to_TableOfReal_reconstruct1(aaff72697b6a2aab). (PCAcxx . . $ PCA# me, constVECVUcxx . . $ constVECVU# const& coefficients);
70
71 #endif /* _PCA_h_ */
72