#include #include #ifndef HUNGARIAN_ALGORITHM_H #define HUNGARIAN_ALGORITHM_H namespace icl{ /** Benchmark: 41ms for a 100² matrix 0.0375ms for 10² matrix 12s for a 500² matrix */ template class HungarianAlgorithm { typedef SimpleMatrix mat; public: static std::vector apply(const SimpleMatrix &m, bool isCostMatrix=true); static void visualizeAssignment(const SimpleMatrix &cost, const std::vector &assignment); static real calculateError(const SimpleMatrix &cost, const std::vector &assignement); }; } //namespace #endif