8 #ifndef IMPSCORE_FUNCTOR_HARMONIC_UPPER_BOUND_H
9 #define IMPSCORE_FUNCTOR_HARMONIC_UPPER_BOUND_H
11 #include <IMP/score_functor/score_functor_config.h>
14 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
22 template <
unsigned int D>
25 double distance)
const {
29 return .5 * k_ * algebra::get_squared(distance);
31 template <
unsigned int D>
34 double distance)
const {
42 IMPSCOREFUNCTOR_END_NAMESPACE
A class to store an fixed array of same-typed values.
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 two particles.
Class for storing model, its restraints, constraints, and particles.