TestGPHIKOnlineLearnable.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _TESTGPHIKONLINELEARNABLE_H
  2. #define _TESTGPHIKONLINELEARNABLE_H
  3. #include <cppunit/extensions/HelperMacros.h>
  4. #include <gp-hik-core/GPHIKClassifier.h>
  5. /**
  6. * CppUnit-Testcase.
  7. * @brief CppUnit-Testcase to verify that GPHIKClassifierIL methods herited from OnlineLearnable (addExample and addMultipleExamples) work as desired.
  8. * @author Alexander Freytag
  9. * @date 03-01-2014 (dd-mm-yyyy)
  10. */
  11. class TestGPHIKOnlineLearnable : public CppUnit::TestFixture {
  12. CPPUNIT_TEST_SUITE( TestGPHIKOnlineLearnable );
  13. CPPUNIT_TEST(testOnlineLearningStartEmpty);
  14. CPPUNIT_TEST(testOnlineLearningOCCtoBinary);
  15. CPPUNIT_TEST(testOnlineLearningBinarytoMultiClass);
  16. CPPUNIT_TEST(testOnlineLearningMultiClass);
  17. CPPUNIT_TEST_SUITE_END();
  18. private:
  19. public:
  20. void setUp();
  21. void tearDown();
  22. void testOnlineLearningStartEmpty();
  23. void testOnlineLearningOCCtoBinary();
  24. void testOnlineLearningBinarytoMultiClass();
  25. void testOnlineLearningMultiClass();
  26. };
  27. #endif // _TESTGPHIKONLINELEARNABLE_H