IMP  2.2.1
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-2014 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 representatative
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.
base::Vector< VectorD<-1 > > VectorKDs
Definition: VectorD.h:413
Cluster sets of points.
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
Ints get_representatives(Embedding *d, PartitionalClustering *pc)
IMP::base::Vector< Int > Ints
Standard way to pass a bunch of Int values.
Definition: base/types.h:49