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 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
27 template <
unsigned int D>
28 double get_score(
Model *,
30 double distance)
const {
34 return .5 * k_ * algebra::get_squared(distance);
36 template <
unsigned int D>
39 double distance)
const {
47 IMPSCOREFUNCTOR_END_NAMESPACE
A class to store an 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.