12 #ifndef IMPCONTAINER_MINIMUM_SINGLETON_RESTRAINT_H
13 #define IMPCONTAINER_MINIMUM_SINGLETON_RESTRAINT_H
15 #include <IMP/container/container_config.h>
20 IMPCONTAINER_BEGIN_NAMESPACE
38 std::string name =
"MinimumSingletonRestraint %1%");
48 void set_n(
unsigned int n) { n_ = n; }
52 double max)
const override;
56 IMPCONTAINER_END_NAMESPACE
A container for Singletons.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Score based on the min or max SingletonScore over a set.
virtual double unprotected_evaluate(DerivativeAccumulator *da) const
Return the unweighted score for the restraint.
A more IMP-like version of the std::vector.
virtual Restraints do_create_current_decomposition() const
virtual double unprotected_evaluate_if_good(DerivativeAccumulator *da, double max) const
Abstract class for scoring object(s) of type ParticleIndex.
A smart pointer to a ref-counted Object that is a class member.
Abstract base class for all restraints.
void set_n(unsigned int n)
Set the number of lowest scores to use.
virtual ModelObjectsTemp do_get_inputs() const =0
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.