8 #ifndef IMPSCORE_FUNCTOR_UNARY_FUNCTION_EVALUATE_H
9 #define IMPSCORE_FUNCTOR_UNARY_FUNCTION_EVALUATE_H
11 #include <IMP/score_functor/score_functor_config.h>
16 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
24 template <
unsigned int D>
25 double get_score(
Model *,
27 double distance)
const {
28 return uf_->evaluate(distance);
30 template <
unsigned int D>
33 double distance)
const {
34 return uf_->evaluate_with_derivative(distance);
38 IMPSCOREFUNCTOR_END_NAMESPACE
A class to store an fixed array of same-typed values.
Single variable function.
Class for storing model, its restraints, constraints, and particles.
A Score on the distance between a pair of particles.
std::pair< double, double > DerivativePair
A pair representing a function value with its first derivative.
A nullptr-initialized pointer to an IMP Object.
Various general useful macros for IMP.
A functor for computing a distance based score for D particles.
Abstract single variable functor class for score functions.