Debian Codegraph @

dwtools/Discriminant_def.h

raw
1 /* Discriminant_def.h
2 *
3 * Copyright (C) 1993-2018 David Weenink
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20 #define ooSTRUCT Discriminant
21 oo_DEFINE_CLASS (Discriminant, Daata)
22
23 #if oo_READING
24 oo_VERSION_UNTIL (1)
25 eigen = Thing_new (Eigen);
26 oo_INTEGER (eigen -> numberOfEigenvalues)
27 oo_INTEGER (eigen -> dimension)
28 oo_VEC (eigen -> eigenvalues, eigen -> numberOfEigenvalues)
29 oo_MAT (eigen -> eigenvectors, eigen -> numberOfEigenvalues, eigen -> dimension)
30 eigen -> onlyReals = true;
31 oo_VERSION_ELSE_UNTIL (2)
32 oo_OBJECT (Eigen, 0, eigen)
33 oo_VERSION_ELSE
34 oo_OBJECT (Eigen, 1, eigen)
35 oo_VERSION_END
36 #else
37 oo_OBJECT (Eigen, 1, eigen)
38 #endif
39
40 oo_INTEGER (numberOfGroups)
41 oo_OBJECT (SSCPList, 0, groups)
42 oo_OBJECT (SSCP, 0, total)
43 oo_VEC (aprioriProbabilities, numberOfGroups)
44 oo_MAT (costs, numberOfGroups, numberOfGroups)
45
46 #if oo_DECLARING
47 void v1_info ()
48 override;
49 #endif
50
51 oo_END_CLASS (Discriminant)
52 #undef ooSTRUCT
53
54
55 /* End of file Discriminant_def.h */