IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
metric_clustering.h
Go to the documentation of this file.
1/**
2 * \file IMP/statistics/metric_clustering.h
3 * \brief Cluster sets of points.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 *
7 */
8
9#ifndef IMPSTATISTICS_METRIC_CLUSTERING_H
10#define IMPSTATISTICS_METRIC_CLUSTERING_H
11
12#include <IMP/statistics/statistics_config.h>
14#include "Metric.h"
15#include "point_clustering.h"
16#include <IMP/algebra/VectorD.h>
17#include <IMP/macros.h>
18#include <IMP/Object.h>
21
22IMPSTATISTICS_BEGIN_NAMESPACE
23
24/** Cluster by repeatedly removing edges which have lots
25 of shortest paths passing through them. The process is
26 terminated when there are a set number of
27 connected components. Other termination criteria
28 can be added if someone proposes them.
29
30 Only items closer than far are connected.
31 */
33 Metric *d, double far, int k);
34
35/** Cluster the elements into clusters with at most the specified
36 diameter.
37 */
39 Metric *d, double maximum_diameter);
40
41/**Two points, \f$p_i\f$, \f$p_j\f$ are in the same cluster if
42 there is a sequence of points \f$\left(p^{ij}_{0}\dots p^{ij}_k\right)\f$
43 such that \f$\forall l ||p^{ij}_l-p^{ij}_{l+1}|| < d\f$.
44 */
46 Metric *metric, double dist);
47
48/** Cutoff-based clustering as defined in
49 Daura et al. Angew. Chem. Int. Ed. 1999. 38(1‐2): p. 236-240.
50 */
52 Metric *d, double cutoff);
53
54IMPSTATISTICS_END_NAMESPACE
55
56#endif /* IMPSTATISTICS_METRIC_CLUSTERING_H */
Store a set of configurations of the model.
Cluster sets of points.
A shared base class to help in debugging and things.
Compute a distance metric between two points.
A container for Singletons.
Simple D vector class.
Store data to be clustered for distance metric based algorithms.
Definition Metric.h:25
A base class for clustering results where each item is in one cluster.
Various general useful macros for IMP.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
PartitionalClustering * create_gromos_clustering(Metric *d, double cutoff)
Cluster sets of points.