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 oo_FROM (1) 23 oo_OBJECT (Eigen, 0, eigen) 24 oo_ENDFROM 25 #if oo_READING 26 oo_VERSION_UNTIL (1) 27 eigen = Thing_new (Eigen); 28 oo_INTEGER (eigen -> numberOfEigenvalues) 29 oo_INTEGER (eigen -> dimension) 30 oo_VEC (eigen -> eigenvalues, eigen -> numberOfEigenvalues) 31 oo_MAT (eigen -> eigenvectors, eigen -> numberOfEigenvalues, eigen -> dimension) 32 oo_VERSION_END 33 #endif 34 35 oo_INTEGER (numberOfGroups) 36 oo_OBJECT (SSCPList, 0, groups) 37 oo_OBJECT (SSCP, 0, total) 38 oo_VEC (aprioriProbabilities, numberOfGroups) 39 oo_MAT (costs, numberOfGroups, numberOfGroups) 40 41 #if oo_DECLARING 42 void v_info () 43 override; 44 #endif 45 46 oo_END_CLASS (Discriminant) 47 #undef ooSTRUCT 48 49 /* End of file Discriminant_def.h */ 50