8 #ifndef IMPCORE_ATTRIBUTE_SINGLETON_SCORE_H
9 #define IMPCORE_ATTRIBUTE_SINGLETON_SCORE_H
11 #include <IMP/core/core_config.h>
18 IMPCORE_BEGIN_NAMESPACE
41 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
54 m->add_to_derivative(k_, pi, d, *da);
Class for adding derivatives from restraints to the model.
A nullptr-initialized pointer to an IMP Object.
Import IMP/kernel/UnaryFunction.h in the namespace.
ParticlesTemp get_particles(kernel::Model *m, const ParticleIndexes &ps)
Import IMP/kernel/singleton_macros.h in the namespace.
Abstract single variable functor class for score functions.
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)
GenericAttributeSingletonScore< UnaryFunction > AttributeSingletonScore
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Import IMP/kernel/SingletonScore.h in the namespace.
virtual double evaluate_index(kernel::Model *m, kernel::ParticleIndex p, DerivativeAccumulator *da) const
Compute the score and the derivative if needed.
double Float
Basic floating-point value (could be float, double...)
virtual kernel::ModelObjectsTemp do_get_inputs(kernel::Model *m, const kernel::ParticleIndexes &pis) const
Apply a function to an attribute.
#define IMP_SINGLETON_SCORE_METHODS(Name)
Class for storing model, its restraints, constraints, and particles.
GenericAttributeSingletonScore< UF > * create_attribute_singleton_score(UF *uf, FloatKey k)
Import IMP/kernel/generic.h in the namespace.