8 #ifndef IMPSCORE_FUNCTOR_LINEAR_LOWER_BOUND_H
9 #define IMPSCORE_FUNCTOR_LINEAR_LOWER_BOUND_H
11 #include <IMP/score_functor/score_functor_config.h>
14 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
26 template <
unsigned int D>
29 double distance)
const {
30 if (distance >= 0)
return 0;
31 return -k_ * distance;
33 template <
unsigned int D>
36 double distance)
const {
40 template <
unsigned int D>
41 double get_maximum_range(
45 template <
unsigned int D>
48 double squared_distance)
const {
49 return squared_distance > 0;
53 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.