10 #ifndef IMPSCORE_FUNCTOR_HARMONIC_LOWER_BOUND_H
11 #define IMPSCORE_FUNCTOR_HARMONIC_LOWER_BOUND_H
13 #include <IMP/score_functor/score_functor_config.h>
16 #include <cereal/access.hpp>
18 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
27 friend class cereal::access;
28 template<
class Archive>
void serialize(Archive &ar) {
35 template <
unsigned int D>
36 double get_score(
Model *,
38 double distance)
const {
39 if (distance > 0)
return 0;
40 return .5 * k_ * algebra::get_squared(distance);
42 template <
unsigned int D>
45 double distance)
const {
49 template <
unsigned int D>
50 double get_maximum_range(
54 template <
unsigned int D>
55 bool get_is_trivially_zero(
Model *,
57 double squared_distance)
const {
58 return squared_distance > 0;
62 IMPSCOREFUNCTOR_END_NAMESPACE
A class to store a 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.