The class samples all combinations in a discrete set to particles. for example, in the case of anchor points each anchor point can be mapped to one particle for a specific mapping. For example, for anchor points [1,2,3,4,5] to particles [a,b,c,d] the sampling space would be: [1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,1,4],......,[5,5,5,4],[5,5,5,5]
Public Member Functions | |
CartesianProductSampler (MappedDiscreteSet *ds, const Particles &ps) | |
Create a combination sampler. | |
DiscreteSet * | get_space (Particle *p) const |
virtual void | move2state (const CombState *cs) |
void | populate_states_of_particles (Particles *particles, std::map< std::string, CombState * > *states) const |
void | show (std::ostream &out=std::cout) const |
Protected Attributes | |
MappedDiscreteSet * | ds_ |
Particles | ps_ |
IMP::domino::CartesianProductSampler::CartesianProductSampler | ( | MappedDiscreteSet * | ds, | |
const Particles & | ps | |||
) |
Create a combination sampler.
[in] | ds | the discrete sampling space |
[in] | ps | the sampled particles |