9 #ifndef IMPEM_ENVELOPE_SCORE_H
10 #define IMPEM_ENVELOPE_SCORE_H
12 #include <IMP/em/em_config.h>
35 bool is_penetrating(
const std::vector<IMP::algebra::Vector3D>& points,
36 float penetration_thr)
const;
42 bool is_penetrating(
const std::vector<IMP::algebra::Vector3D>& points,
44 float penetration_thr)
const;
51 double score(
const std::vector<IMP::algebra::Vector3D>& points)
const;
56 double score(
const std::vector<IMP::algebra::Vector3D>& points,
67 unsigned int find_range(
float distance)
const {
68 for(
unsigned int i=0; i< ranges_.size(); i++)
69 if(distance <= ranges_[i])
return i;
70 return ranges_.size();
74 const MapDistanceTransform* mdt_;
75 std::vector<float> ranges_;
76 std::vector<int> weights_;
77 std::vector<long> inner_voxels_;
78 std::vector<long> neighbors_;