ClusterAlgorithm.h 785 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "core/vector/VVector.h"
  12. namespace OBJREC {
  13. /** Interface for Cluster-Algorithms */
  14. class ClusterAlgorithm
  15. {
  16. protected:
  17. public:
  18. /** simple constructor */
  19. ClusterAlgorithm();
  20. /** simple destructor */
  21. virtual ~ClusterAlgorithm();
  22. virtual void cluster (
  23. const NICE::VVector & features,
  24. NICE::VVector & prototypes,
  25. std::vector<double> & weights,
  26. std::vector<int> & assignment ) = 0;
  27. };
  28. } // namespace
  29. #endif