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) {
36 template <
unsigned int D>
37 double get_score(
Model *,
39 double distance)
const {
42 template <
unsigned int D>
45 double distance)
const {
46 return uf_->evaluate_with_derivative(distance);
50 IMPSCOREFUNCTOR_END_NAMESPACE
virtual double evaluate(double feature) const
Calculate score with respect to the given feature.
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.