8 #ifndef IMPSCORE_FUNCTOR_WEIGHT_SCORE_H 
    9 #define IMPSCORE_FUNCTOR_WEIGHT_SCORE_H 
   11 #include <IMP/score_functor/score_functor_config.h> 
   13 IMPSCOREFUNCTOR_BEGIN_NAMESPACE
 
   17 template <
class BaseDistanceScore>
 
   19   typedef BaseDistanceScore P;
 
   23   WeightScore(
double w, BaseDistanceScore base) : P(base), w_(w) {}
 
   24   template <
unsigned int D>
 
   25   double get_score(
Model *m,
 
   27                    double distance)
 const {
 
   28     return w_ * P::get_score(m, pi, distance);
 
   30   template <
unsigned int D>
 
   33       double distance)
 const {
 
   41 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. 
 
std::pair< double, double > DerivativePair
A pair representing a function value with its first derivative.