9 #ifndef IMPISD_UNIFORM_PRIOR_H
10 #define IMPISD_UNIFORM_PRIOR_H
12 #include <IMP/isd/isd_config.h>
15 #include <cereal/access.hpp>
16 #include <cereal/types/base_class.hpp>
18 IMPISD_BEGIN_NAMESPACE
29 friend class cereal::access;
30 template<
class Archive>
void serialize(Archive &ar) {
31 ar(cereal::base_class<Restraint>(
this), pi_, upperb_, lowerb_, k_);
38 double lowerb, std::string name=
"UniformPrior%1%");
49 virtual double get_probability()
const
58 double get_k()
const {
return k_; }
virtual RestraintInfo * get_static_info() const
virtual RestraintInfo * get_dynamic_info() const
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual double unprotected_evaluate(DerivativeAccumulator *da) const
Return the unweighted score for the restraint.
std::pair< Float, Float > FloatRange
A pair representing the allowed range for a Float attribute.
A more IMP-like version of the std::vector.
Class for storing model, its restraints, constraints, and particles.
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
Report key:value information on restraints.
Class to handle individual particles of a Model object.
Abstract base class for all restraints.
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.