9 #ifndef IMPMULTIFIT_DATA_POINTS_ASSIGNMENT_H
10 #define IMPMULTIFIT_DATA_POINTS_ASSIGNMENT_H
18 #include <IMP/statistics/internal/ClusteringEngine.h>
19 #include <IMP/statistics/internal/DataPoints.h>
21 #include <IMP/multifit/multifit_config.h>
24 IMPMULTIFIT_BEGIN_NAMESPACE
25 typedef std::map<IntPair, int> CEdges;
32 (
const IMP::statistics::internal::XYZDataPoints *data,
33 const IMP::statistics::internal::ClusteringEngine *cluster_engine);
36 int get_number_of_clusters()
const {
return cluster_sets_.size();}
39 const IntPairs *get_edges()
const {
return &edges_;}
42 for(
int i=0;i<get_number_of_clusters();i++) {
43 IMP::statistics::internal::Array1DD xyz =cluster_engine_->get_center(i);
48 const IMP::statistics::internal::ClusteringEngine *get_cluster_engine()
49 const {
return cluster_engine_;};
54 void connect_clusters(
int c1,
int c2);
55 void set_edges(
double voxel_size=3.);
58 Pointer<const IMP::statistics::internal::XYZDataPoints> data_;
59 std::vector<algebra::Vector3Ds> cluster_sets_;
60 const IMP::statistics::internal::ClusteringEngine *cluster_engine_;
65 IMPMULTIFITEXPORT
void write_chimera(
66 const std::string &chimera_filename,
70 CEdges> read_cmm(
const std::string &cmm_filename);
75 CEdges> read_cmm(
const std::string &cmm_filename);
82 IMPMULTIFITEXPORT
void write_pdb(
const std::string &pdb_filename,
86 const std::string &filename);
90 const std::string &filename);
102 const std::string &filename);
107 Float resolution,
Float apix,
const std::string &filename);
114 IMPMULTIFIT_END_NAMESPACE