IMP logo
IMP Reference Guide  2.5.0
The Integrative Modeling Platform
statistics/utility.h
Go to the documentation of this file.
1 /**
2  * \file IMP/statistics/utility.h
3  * \brief Cluster sets of points.
4  *
5  * Copyright 2007-2015 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPSTATISTICS_UTILITY_H
10 #define IMPSTATISTICS_UTILITY_H
11 
12 #include <IMP/statistics/statistics_config.h>
13 #include "PartitionalClustering.h"
14 #include "Embedding.h"
15 
16 IMPSTATISTICS_BEGIN_NAMESPACE
17 
18 /** Given a clustering and an embedding, compute the centroid for each cluster
19  */
20 IMPSTATISTICSEXPORT algebra::VectorKDs get_centroids(Embedding* d,
21  PartitionalClustering* pc);
22 
23 /** Given a clustering and an embedding, compute a representative
24  element for each cluster.
25  */
26 IMPSTATISTICSEXPORT Ints
27  get_representatives(Embedding* d, PartitionalClustering* pc);
28 
29 IMPSTATISTICS_END_NAMESPACE
30 
31 #endif /* IMPSTATISTICS_UTILITY_H */
Compute a distance metric between two points.
Vector< VectorD<-1 > > VectorKDs
Definition: VectorD.h:413
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.
Definition: types.h:49
Cluster sets of points.
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
Ints get_representatives(Embedding *d, PartitionalClustering *pc)