ClusterAlgorithm.h 771 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * @file ClusterAlgorithm.h
  3. * @brief Interface for Cluster-Algorithms
  4. * @author Erik Rodner
  5. * @date 10/29/2007
  6. */
  7. #ifndef CLUSTERALGORITHMINCLUDE
  8. #define CLUSTERALGORITHMINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "core/vector/VVector.h"
  15. namespace OBJREC {
  16. /** Interface for Cluster-Algorithms */
  17. class ClusterAlgorithm
  18. {
  19. protected:
  20. public:
  21. /** simple constructor */
  22. ClusterAlgorithm();
  23. /** simple destructor */
  24. virtual ~ClusterAlgorithm();
  25. virtual void cluster (
  26. const NICE::VVector & features,
  27. NICE::VVector & prototypes,
  28. std::vector<double> & weights,
  29. std::vector<int> & assignment ) = 0;
  30. };
  31. } // namespace
  32. #endif