11 #ifndef IMPSCORE_FUNCTOR_HARMONIC_LOWER_BOUND_H
12 #define IMPSCORE_FUNCTOR_HARMONIC_LOWER_BOUND_H
14 #include <IMP/score_functor/score_functor_config.h>
17 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
28 template <
unsigned int D>
29 double get_score(
Model *,
31 double distance)
const {
32 if (distance > 0)
return 0;
33 return .5 * k_ * algebra::get_squared(distance);
35 template <
unsigned int D>
38 double distance)
const {
42 template <
unsigned int D>
43 double get_maximum_range(
47 template <
unsigned int D>
48 bool get_is_trivially_zero(
Model *,
50 double squared_distance)
const {
51 return squared_distance > 0;
55 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 two particles.