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>
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_; }
Abstract base class for all restraints.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Report key:value information on restraints.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
Index< ParticleIndexTag > ParticleIndex
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
std::pair< Float, Float > FloatRange
A pair representing the allowed range for a Float attribute.
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.