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 #include <cereal/access.hpp>
18 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
24 friend class cereal::access;
26 template<
class Archive>
void serialize(Archive &ar) {
33 template <
unsigned int D>
34 double get_score(
Model *,
36 double distance)
const {
37 return uf_->evaluate(distance);
39 template <
unsigned int D>
42 double distance)
const {
43 return uf_->evaluate_with_derivative(distance);
47 IMPSCOREFUNCTOR_END_NAMESPACE
A class to store a 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.
Macros to help in implementing Value objects.
A functor for computing a distance based score for D particles.
Abstract single variable functor class for score functions.