clustering.h
641 Bytes
#ifndef CLUSTERING_H
#define CLUSTERING_H
#include <vector>
#include <dlib/clustering.h>
#include <dlib/rand.h>
#include "complexe.h"
void complexClusterSpec (std::vector < Complexe > &comps,
std::vector < uint > ¢roidIdsSpec,
std::vector < std::vector < uint > > &clusterIdsSpec);
long chooseKSpec(const dlib::matrix<double> &K, double epsilon);
void clusteringSpectral(dlib::matrix<double> &K, long num_clusters,
std::vector < uint > ¢roidIdsSpec,
std::vector < std::vector < uint > > &clusterIdsSpec);
#endif // CLUSTERING_H