9 #ifndef IMPSCORE_FUNCTOR_HARMONIC_H
10 #define IMPSCORE_FUNCTOR_HARMONIC_H
12 #include <IMP/score_functor/score_functor_config.h>
15 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
25 template <
unsigned int D>
26 double get_score(
Model *,
28 double distance)
const {
29 return .5 * k_ * algebra::get_squared(distance);
31 template <
unsigned int D>
34 double distance)
const {
37 double get_k() {
return k_; }
38 void set_k(
double k) { k_ = k; }
41 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.