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
36 IMP::OwnerPointer<UF> f_;
42 Float get_coordinate(
unsigned int i) {
return v_[i];}
45 IMP_WARN(
"DistanceTo dropped deriv of " << v << std::endl);
54 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
63 Float GenericDistanceToSingletonScore<UF>::evaluate(
Particle *b,
66 Float v= internal::evaluate_distance_pair_score(XYZ(b),
68 f_.get(), boost::lambda::_1);
70 << pt_ <<
" scored " << v << std::endl);
74 void GenericDistanceToSingletonScore<UF>::do_show(std::ostream &out)
const
76 out <<
"function " << *f_;
100 IMP::OwnerPointer<UnaryFunction> f_;
106 Float get_coordinate(
unsigned int i) {
return v_[i];}
118 IMPCORE_END_NAMESPACE