IMP  2.0.0
The Integrative Modeling Platform
RecursivePartitionalClusteringEmbedding.h
Go to the documentation of this file.
1 /**
2  * \file IMP/statistics/RecursivePartitionalClusteringEmbedding.h
3  * \brief Cluster sets of points.
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPSTATISTICS_RECURSIVE_PARTITIONAL_CLUSTERING_EMBEDDING_H
10 #define IMPSTATISTICS_RECURSIVE_PARTITIONAL_CLUSTERING_EMBEDDING_H
11 
12 #include <IMP/statistics/statistics_config.h>
13 #include "PartitionalClustering.h"
14 #include "Embedding.h"
15 #include "embedding_macros.h"
16 
17 IMPSTATISTICS_BEGIN_NAMESPACE
18 
19 
20 /** Represent an embedding for clustering data that has already been clustered
21  once. To use it, cluster things once, create one of these with the embedding
22  you want (created with the original data). When you pass this embedding to
23  the clustering algorithm, it will cluster the centers. You can extract the
24  clustering of the original elements using create_full_clustering().
25 */
26 class IMPSTATISTICSEXPORT RecursivePartitionalClusteringEmbedding:
27  public Embedding {
28  IMP::OwnerPointer<Embedding> metric_;
29  IMP::OwnerPointer<PartitionalClustering> clustering_;
30  public:
32  PartitionalClustering *clustering);
34  create_full_clustering(PartitionalClustering *center_cluster);
36 };
37 
38 
39 IMPSTATISTICS_END_NAMESPACE
40 
41 #endif /* IMPSTATISTICS_RECURSIVE_PARTITIONAL_CLUSTERING_EMBEDDING_H */