8 #ifndef IMPCORE_DISTANCE_TO_SINGLETON_SCORE_H
9 #define IMPCORE_DISTANCE_TO_SINGLETON_SCORE_H
11 #include <IMP/core/core_config.h>
13 #include "internal/evaluate_distance_pair_score.h"
20 #include <boost/lambda/lambda.hpp>
22 IMPCORE_BEGIN_NAMESPACE
40 Float get_coordinate(
unsigned int i) {
return v_[i]; }
43 IMP_WARN(
"DistanceTo dropped deriv of " << v << std::endl);
60 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
70 double v = internal::evaluate_distance_pair_score(
71 XYZ(m, pi), StaticD(pt_), da, f_.get(), boost::lambda::_1);
73 <<
" scored " << v << std::endl);
99 Float get_coordinate(
unsigned int i) {
return v_[i]; }
119 IMPCORE_END_NAMESPACE
GenericDistanceToSingletonScore< UnaryFunction > DistanceToSingletonScore
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Single variable function.
Macros for various classes.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
#define IMP_LOG_VERBOSE(expr)
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const
Overload this method to specify the inputs.
A more IMP-like version of the std::vector.
Class for storing model, its restraints, constraints, and particles.
#define IMP_WARN(expr)
Write a warning to a log.
#define IMP_UNUSED(variable)
Abstract class for scoring object(s) of type ParticleIndex.
#define IMP_SINGLETON_SCORE_METHODS(Name)
Apply a function to the distance to a fixed point.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const
Overload this method to specify the inputs.
A nullptr-initialized pointer to an IMP Object.
double Float
Basic floating-point value (could be float, double...)
Apply a function to the distance to a fixed point.
virtual double evaluate_index(Model *m, ParticleIndex p, DerivativeAccumulator *da) const
Compute the score and the derivative if needed.
Abstract single variable functor class for score functions.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.
Various important functionality for implementing decorators.