9 #ifndef IMPKERNEL_SCORING_FUNCTION_H
10 #define IMPKERNEL_SCORING_FUNCTION_H
12 #include <IMP/kernel_config.h>
13 #include "base_types.h"
14 #include "dependency_graph.h"
22 IMPKERNEL_BEGIN_NAMESPACE
44 typedef std::pair<double, bool> ScoreIsGoodPair;
69 double evaluate_if_good(
bool derivatives);
77 double evaluate(
bool derivatives);
79 double evaluate_if_below(
bool derivatives,
double max);
103 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
130 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
140 IMPKERNEL_DEPRECATED_METHOD_DECL(2.5)
142 IMPKERNEL_DEPRECATED_METHOD_DEF(2.5,
"Use a ScoringFunction instead");
151 std::ostream &out = std::cout);
153 IMPKERNEL_END_NAMESPACE
IMP::Vector< IMP::Pointer< ScoringFunction > > ScoringFunctions
const double NO_MAX
Use this value when you want to turn off maximum for restraint evaluation.
virtual ModelObjectsTemp do_get_outputs() const
ScoringFunctions create_decomposition(ScoringFunction *sf)
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Class for storing model, its restraints, constraints, and particles.
A smart pointer to a ref-counted Object that is a class member.
Class for adding up scores during ScoringFunction evaluation.
double get_last_score() const
returns the score that was calculated in the last evaluate call
Single variable function.
A nullptr-initialized pointer to an IMP Object.
Represents a scoring function on the model.
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
Restraints create_restraints(RMF::FileConstHandle fh, Model *m)
Abstract base class for all restraints.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
bool get_had_good_score() const
A restraint is a term in an IMP ScoringFunction.