Base class for all samplers.
A sampler takes a Model and searches for good configurations, given the optimizeable parameters and the scoring function in the Model and extra information that can be provided.
Typically a sampler works by using one or more Optimizer types to search for configurations which minimize the scoring function.
Inheritance diagram for IMP::Sampler:Public Member Functions | |
| Sampler (Model *m, std::string name="Sampler %1%") | |
| Model * | get_model () const |
| ConfigurationSet * | get_sample () const |
Macros to aid with implementing object classes | |
These macros are here to aid with implementing classes that inherit from the various abstract base classes in the kernel. Each Each IMP_OBJECT()/IMP_RESTRAINT()-style macro declares/defines the set of needed functions. The declared functions should be defined in the associated All of the IMP_OBJECT()/IMP_RESTRAINT()-style macros define the following methods:
In addition, they all declare:
For all macros, the Name parameter is the name of the class being implemented and the version_info parameter is the IMP::VersionInfo to use (probably get_version_info()). | |
| #define | IMP_SAMPLER(Name) |
| Define the basic things you need for a Sampler. | |
Protected Member Functions | |
| virtual ConfigurationSet * | do_sample () const =0 |
| Subclasses should override this method. | |
| virtual ConfigurationSet* IMP::Sampler::do_sample | ( | ) | const [protected, pure virtual] |
Subclasses should override this method.
| #define IMP_SAMPLER | ( | Name | ) | [related] |