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
18 template <
class BaseDistanceScore>
20 typedef BaseDistanceScore P;
23 WeightScore(
double w, BaseDistanceScore base): P(base),
25 template <
unsigned int D>
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