9 #ifndef IMPCORE_INCREMENTAL_SCORING_FUNCTION_H
10 #define IMPCORE_INCREMENTAL_SCORING_FUNCTION_H
12 #include <IMP/core/core_config.h>
19 IMPCORE_BEGIN_NAMESPACE
21 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
51 struct ScoringFunctionsMap :
public base::map<kernel::ParticleIndex, Data> {
52 ~ScoringFunctionsMap();
54 ScoringFunctionsMap scoring_functions_;
59 Floats flattened_restraints_scores_;
63 struct Wrapper :
public base::Vector<internal::NBLScoring *> {
68 void create_scoring_functions();
69 void do_non_incremental_evaluate();
88 double weight = 1.0,
double max =
NO_MAX,
90 "IncrementalScoringFunction%1%");
95 void reset_moved_particles();
100 void add_close_pair_score(
PairScore *ps,
double distance,
103 void add_close_pair_score(
PairScore *ps,
double distance,
105 void clear_close_pair_scores();
107 IMPCORE_DEPRECATED_FUNCTION_DECL(2.1)
109 IMPCORE_DEPRECATED_FUNCTION_DEF(2.1,
"Use get_movable_indexes()");
110 return get_movable_indexes();
117 virtual
void handle_set_has_required_score_states(
bool) IMP_OVERRIDE;
121 IMPCORE_END_NAMESPACE
const double NO_MAX
Use this value when you want to turn off maximum for restraint evaluation.
virtual Restraints create_restraints() const =0
Import IMP/kernel/base_types.h in the namespace.
IMP::base::Vector< IMP::base::WeakPointer< kernel::ModelObject > > ModelObjectsTemp
A nullptr-initialized pointer to an IMP Object.
A smart pointer to a ref-counted Object that is a class memeber.
Class for adding up scores during ScoringFunction evaluation.
IMP::base::Vector< IMP::base::WeakPointer< ScoreState > > ScoreStatesTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
IMP::base::Vector< IMP::base::Pointer< PairPredicate > > PairPredicates
virtual void do_add_score_and_derivatives(ScoreAccumulator sa, const ScoreStatesTemp &ss)=0
Functions to generate vectors.
Storage of a model, its restraints, constraints and particles.
Declare an efficient stl-compatible map.