TestKMedian.h 690 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _TESTKMEDIAN_H
  2. #define _TESTKMEDIAN_H
  3. #include <cppunit/extensions/HelperMacros.h>
  4. #include "vislearning/math/cluster/KMedian.h"
  5. /**
  6. * CppUnit-Testcase.
  7. * @brief CppUnit-Testcase to verify that the KMedian-clusterin works correctly
  8. */
  9. class TestKMedian : public CppUnit::TestFixture {
  10. CPPUNIT_TEST_SUITE( TestKMedian );
  11. CPPUNIT_TEST(testKMedianClustering);
  12. CPPUNIT_TEST(testKMedianPersistent);
  13. CPPUNIT_TEST_SUITE_END();
  14. private:
  15. public:
  16. void setUp();
  17. void tearDown();
  18. /**
  19. * Constructor / Destructor testing
  20. */
  21. void testKMedianClustering();
  22. void testKMedianPersistent();
  23. };
  24. #endif // _TESTKMEDIAN_H