10 #ifndef IMPKERNEL_DECLARE_SCORING_FUNCTION_H
11 #define IMPKERNEL_DECLARE_SCORING_FUNCTION_H
13 #include <IMP/kernel/kernel_config.h>
25 IMPKERNEL_BEGIN_NAMESPACE
51 inline void ensure_dependencies();
53 friend class NullScoringFunction;
59 typedef std::pair<double, bool> ScoreIsGoodPair;
65 const ScoreStatesTemp &ss)=0;
95 double evaluate_if_good(
bool derivatives);
104 double evaluate(
bool derivatives);
106 double evaluate_if_below(
bool derivatives,
double max);
110 bool get_had_good_score()
const {
124 const ScoreStatesTemp& get_score_states();
142 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
170 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
186 std::ostream &out=std::cout);
189 IMPKERNEL_END_NAMESPACE