IMP
2.0.1
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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-2013 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
21
algebra::VectorKDs
get_centroids
(Embedding* d, PartitionalClustering *pc);
22
23
/** Given a clustering and an embedding, compute a representatative
24
element for each cluster.
25
*/
26
IMPSTATISTICSEXPORT
27
Ints
get_representatives
(Embedding* d, PartitionalClustering *pc);
28
29
30
31
IMPSTATISTICS_END_NAMESPACE
32
33
#endif
/* IMPSTATISTICS_UTILITY_H */