9#ifndef IMPEM_ENVELOPE_SCORE_H
10#define IMPEM_ENVELOPE_SCORE_H
12#include <IMP/em/em_config.h>
36 float penetration_thr)
const;
46 float penetration_thr)
const;
70 unsigned int find_range(
float distance)
const {
71 for (
unsigned int i = 0; i < ranges_.size(); i++)
73 if (distance <= ranges_[i] + 1e-5)
return i;
74 return ranges_.size();
78 const MapDistanceTransform* mdt_;
79 std::vector<float> ranges_;
80 std::vector<int> weights_;
81 std::vector<long> inner_voxels_;
82 std::vector<long> neighbors_;
A shared base class to help in debugging and things.
Common base class for heavy weight IMP objects.
Version and module information for Objects.
class for envelope based scoring using MapDistanceTransform
double score(const IMP::algebra::Vector3Ds &points) const
IMP::VersionInfo get_version_info() const override
Get information about the module and version of the object.
double score(const IMP::algebra::Vector3Ds &points, const IMP::algebra::Transformation3D &trans) const
bool is_penetrating(const IMP::algebra::Vector3Ds &points, float penetration_thr) const
bool is_penetrating(const IMP::algebra::Vector3Ds &points, const IMP::algebra::Transformation3D &trans, float penetration_thr) const
Vector< VectorD< 3 > > Vector3Ds