9#ifndef IMPDOMINO_DISCRETE_SAMPLER_H
10#define IMPDOMINO_DISCRETE_SAMPLER_H
12#include <IMP/domino/domino_config.h>
21IMPDOMINO_BEGIN_NAMESPACE
50class IMPDOMINOEXPORT DiscreteSampler :
public Sampler {
62 unsigned int max = std::numeric_limits<int>::max())
const;
67 if (restraints_set_) {
70 IMP_THROW(
"No restraints have been set. Use set_restraints().",
86 restraints_set_ =
true;
95 pst_->set_particle_states(p, se);
114 ParticleStatesTable *get_particle_states_table()
const {
return pst_; }
115 IMP_LIST_ACTION(
public, SubsetFilterTable, SubsetFilterTables,
116 subset_filter_table, subset_filter_tables,
117 SubsetFilterTable *, SubsetFilterTables,
118 obj->set_was_used(
true), , );
129 unsigned int get_maximum_number_of_assignments()
const {
return max_; }
134IMPDOMINO_END_NAMESPACE
A nullptr-initialized pointer to an IMP Object.
Base class for all samplers.
A Bayesian inference-based sampler.
#define IMP_THROW(message, exception_name)
Throw an exception with a message.
A class to store a set of configurations of a model.
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Provide a consistent interface for things that take Restraints as arguments.
An exception for an invalid value being passed to IMP.
A base class for discrete samplers in Domino2.
Assignments get_sample_assignments(const Subset &s) const
void set_maximum_number_of_assignments(unsigned int mx)
void set_restraints(RestraintsAdaptor rs)
Set the Restraints to use in the RestraintScoreSubsetFilterTable.
void set_particle_states(Particle *p, ParticleStates *se)
Represent a subset of the particles being optimized.
Various general useful macros for IMP.
IMP::Vector< Assignment > Assignments
IMP::Vector< IMP::Pointer< SubsetFilterTable > > SubsetFilterTables
IMP::Vector< IMP::Pointer< DiscreteSampler > > DiscreteSamplers
IMP::Vector< IMP::Pointer< Restraint > > Restraints
IMP::Vector< IMP::WeakPointer< Restraint > > RestraintsTemp
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
A Bayesian inference-based sampler.
A smart pointer to a ref-counted Object that is a class member.
A Bayesian inference-based sampler.
Various general useful macros for IMP.