8 #ifndef IMPSCORE_FUNCTOR_HARMONIC_LOWER_BOUND_H
9 #define IMPSCORE_FUNCTOR_HARMONIC_LOWER_BOUND_H
11 #include <IMP/score_functor/score_functor_config.h>
14 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
22 template <
unsigned int D>
25 double distance)
const {
26 if (distance > 0)
return 0;
27 return .5 * k_ * algebra::get_squared(distance);
29 template <
unsigned int D>
32 double distance)
const {
36 template <
unsigned int D>
37 double get_maximum_range(
41 template <
unsigned int D>
44 double squared_distance)
const {
45 return squared_distance > 0;
49 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.
Class for storing model, its restraints, constraints, and particles.