10 #ifndef IMPKERNEL_DECLARE_SCORING_FUNCTION_H
11 #define IMPKERNEL_DECLARE_SCORING_FUNCTION_H
13 #include <IMP/kernel/kernel_config.h>
23 IMPKERNEL_BEGIN_NAMESPACE
48 typedef std::pair<double, bool> ScoreIsGoodPair;
73 double evaluate_if_good(
bool derivatives);
82 double evaluate(
bool derivatives);
84 double evaluate_if_below(
bool derivatives,
double max);
110 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
137 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
155 std::ostream &out = std::cout);
157 IMPKERNEL_END_NAMESPACE
Abstract base class for all restraints.
const double NO_MAX
Use this value when you want to turn off maximum for restraint evaluation.
double get_last_score() const
ScoringFunctions create_decomposition(ScoringFunction *sf)
IMP::base::Vector< IMP::base::WeakPointer< kernel::ModelObject > > ModelObjectsTemp
A nullptr-initialized pointer to an IMP Object.
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
kernel::Restraints create_restraints(RMF::FileConstHandle fh, kernel::Model *m)
A smart pointer to a ref-counted Object that is a class memeber.
IMP::kernel::ScoringFunction ScoringFunction
Build dependency graphs on models.
virtual ModelObjectsTemp do_get_outputs() const
Single variable function.
IMP::kernel::ScoreAccumulator ScoreAccumulator
Class for adding up scores during ScoringFunction evaluation.
A restraint is a term in an IMP ScoringFunction.
IMP::base::Vector< IMP::base::Pointer< ScoringFunction > > ScoringFunctions
Class for storing model, its restraints, constraints, and particles.
bool get_had_good_score() const