5 // Created by SarahsWork on 12/4/13.
6 // Copyright (c) 2013 Schloss Lab. All rights reserved.
9 #ifndef Mothur_kmeans_h
10 #define Mothur_kmeans_h
12 #include "communitytype.h"
14 /**************************************************************************************************/
16 class KMeans : public CommunityTypeFinder {
19 KMeans(vector<vector<int> >, int);
20 vector<double> calcSilhouettes(vector< vector< double> >);
21 double calcCHIndex(vector< vector< double> >);
25 int findSecondClosest(vector<int>&, vector<vector<double> >&, map<int, int>);
26 double calcScore(int sample, int partition, vector<vector<double> >&, map<int, int>);
30 /**************************************************************************************************/