Discriminant_def.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #define ooSTRUCT Discriminant
  19. oo_DEFINE_CLASS (Discriminant, Daata)
  20. oo_FROM (1)
  21. oo_OBJECT (Eigen, 0, eigen)
  22. oo_ENDFROM
  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. oo_VERSION_END
  31. #endif
  32. oo_INTEGER (numberOfGroups)
  33. oo_OBJECT (SSCPList, 0, groups)
  34. oo_OBJECT (SSCP, 0, total)
  35. oo_VEC (aprioriProbabilities, numberOfGroups)
  36. oo_MAT (costs, numberOfGroups, numberOfGroups)
  37. #if oo_DECLARING
  38. void v_info ()
  39. override;
  40. #endif
  41. oo_END_CLASS (Discriminant)
  42. #undef ooSTRUCT
  43. /* End of file Discriminant_def.h */