IMP logo
IMP Reference Guide  2.18.0
The Integrative Modeling Platform
em/embedding.h
Go to the documentation of this file.
1 /**
2  * \file IMP/em/embedding.h
3  * \brief Cluster sets of points.
4  *
5  * Copyright 2007-2022 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPEM_EMBEDDING_H
10 #define IMPEM_EMBEDDING_H
11 
12 #include <IMP/em/em_config.h>
13 #include "DensityMap.h"
15 
16 IMPEM_BEGIN_NAMESPACE
17 
18 /** Generate a set of points from the voxels in a em::DensityMap
19  which are above a certain threshold.
20  */
21 class IMPEMEXPORT HighDensityEmbedding : public statistics::Embedding {
22  algebra::Vector3Ds points_;
23 
24  public:
25  HighDensityEmbedding(DensityMap *dm, double threshold);
26  algebra::VectorKD get_point(unsigned int i) const override;
27  unsigned int get_number_of_items() const override;
29 };
30 
31 IMPEM_END_NAMESPACE
32 
33 #endif /* IMPEM_EMBEDDING_H */
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Class for handling density maps.
Class for handling density maps.
Definition: DensityMap.h:93
Store data to be clustered for embedding based algorithms.
Cluster sets of points.
VectorD<-1 > VectorKD
Definition: VectorD.h:437