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>
18IMPSCOREFUNCTOR_BEGIN_NAMESPACE
21class UnaryFunctionEvaluate :
public Score {
24 friend class cereal::access;
26 template<
class Archive>
void serialize(Archive &ar) {
32 UnaryFunctionEvaluate() {}
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);
50IMPSCOREFUNCTOR_END_NAMESPACE
A nullptr-initialized pointer to an IMP Object.
A Score on the distance between a pair of particles.
Single variable function.
A class to store a fixed array of same-typed values.
Class for storing model, its restraints, constraints, and particles.
Abstract single variable functor class for score functions.
virtual double evaluate(double feature) const
Calculate score with respect to the given feature.
std::pair< double, double > DerivativePair
A pair representing a function value with its first derivative.
A smart pointer to a ref-counted Object that is a class member.
Macros to help in implementing Value objects.