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>
27 double get_score(
Model *,
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>
46 bool get_is_trivially_zero(
Model *,
48 double squared_distance)
const {
49 return squared_distance > 0;
57 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.