9 #ifndef IMPCORE_NORMAL_MOVER_H
10 #define IMPCORE_NORMAL_MOVER_H
12 #include <IMP/core/core_config.h>
14 #include <cereal/access.hpp>
15 #include <cereal/types/base_class.hpp>
16 #include <cereal/types/vector.hpp>
18 IMPCORE_BEGIN_NAMESPACE
29 friend class cereal::access;
30 template<
class Archive>
void serialize(Archive &ar) {
31 ar(cereal::base_class<MonteCarloMover>(
this), pis_, keys_, stddev_);
32 if (std::is_base_of<cereal::detail::InputArchiveBase, Archive>::value) {
34 initialize(pis_, keys_, stddev_);
58 void set_sigma(
Float sigma) {
63 Float get_sigma()
const {
return stddev_; }
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual void do_reject()=0
Implement reset_proposed_move()
Return value of the MonteCarloMover::propose() function.
Class for storing model, its restraints, constraints, and particles.
A base class for classes which perturb particles.
The base class for movers for Monte Carlo optimization.
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
virtual MonteCarloMoverResult do_propose()=0
Implement propose_move()
Modify a set of continuous variables using a normal distribution.
double Float
Basic floating-point value (could be float, double...)
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
virtual ModelObjectsTemp do_get_inputs() const =0