|
@@ -8,11 +8,12 @@
|
|
|
#ifndef KMEDIANINCLUDE
|
|
|
#define KMEDIANINCLUDE
|
|
|
|
|
|
-#include "core/vector/VectorT.h"
|
|
|
-#include "core/vector/MatrixT.h"
|
|
|
+#include <core/basics/Config.h>
|
|
|
+#include <core/vector/Distance.h>
|
|
|
+#include <core/vector/MatrixT.h>
|
|
|
+#include <core/vector/VectorT.h>
|
|
|
|
|
|
#include "ClusterAlgorithm.h"
|
|
|
-#include <core/vector/Distance.h>
|
|
|
|
|
|
namespace OBJREC {
|
|
|
|
|
@@ -86,12 +87,21 @@ namespace OBJREC {
|
|
|
|
|
|
public:
|
|
|
|
|
|
+ /**
|
|
|
+ * @brief simple constructor
|
|
|
+ * @param _noClasses the number of clusters to be computed
|
|
|
+ * @param _distanceMode a string specifying the distance function to be used (default: euclidean)
|
|
|
+ */
|
|
|
+ KMedian( const int & _noClasses , const std::string & _distanceMode="euclidean");
|
|
|
+
|
|
|
/**
|
|
|
* @brief standard constructor
|
|
|
- * @param noClasses the number of clusters to be computed
|
|
|
- * @param distanceMode a string specifying the distance function to be used (default: euclidean)
|
|
|
+ * @param conf config file specifying all relevant variable settings
|
|
|
+ * @param _section name of the section within the configfile where the settings can be found (default: KMedian)
|
|
|
*/
|
|
|
- KMedian( int noClasses , std::string distanceMode="euclidean");
|
|
|
+ KMedian( const NICE::Config *conf, const std::string & _section = "KMedian");
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/** simple destructor */
|
|
|
virtual ~KMedian();
|