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>
24 double distance)
const {
25 if (distance <0)
return 0;
26 else return .5*k_*algebra::get_squared(distance);
28 template <
unsigned int D>
31 double distance)
const {
38 IMPSCOREFUNCTOR_END_NAMESPACE