ClusterAlgorithm.h 845 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. // nice-core includes
  10. #include <core/basics/Exception.h>
  11. //
  12. #include <core/vector/VectorT.h>
  13. #include <core/vector/MatrixT.h>
  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