10 #ifndef IMPSCORE_FUNCTOR_HARMONIC_UPPER_BOUND_H
11 #define IMPSCORE_FUNCTOR_HARMONIC_UPPER_BOUND_H
13 #include <IMP/score_functor/score_functor_config.h>
16 #include <cereal/access.hpp>
18 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
27 friend class cereal::access;
28 template<
class Archive>
void serialize(Archive &ar) {
34 template <
unsigned int D>
35 double get_score(
Model *,
37 double distance)
const {
41 return .5 * k_ * algebra::get_squared(distance);
43 template <
unsigned int D>
46 double distance)
const {
54 IMPSCOREFUNCTOR_END_NAMESPACE
A class to store a fixed array of same-typed values.
Class for storing model, its restraints, constraints, and particles.
Functions to deal with very common math operations.
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 functor for computing a distance based score for D particles.