![]() |
RDKit
Open-source cheminformatics and machine learning.
|
EvenSamplePairsStrategy. More...
#include <EvenSamplePairs.h>
Public Member Functions | |
EvenSamplePairsStrategy () | |
EvenSamplePairsStrategy (const EvenSamplePairsStrategy &rhs) | |
const char * | type () const override |
void | initializeStrategy (const ChemicalReaction &, const EnumerationTypes::BBS &) override |
const EnumerationTypes::RGROUPS & | next () override |
The current permutation {r1, r2, ...}. More... | |
boost::uint64_t | getPermutationIdx () const override |
Returns how many permutations have been processed by this strategy. More... | |
operator bool () const override | |
EnumerationStrategyBase * | copy () const override |
copy the enumeration strategy complete with current state More... | |
std::string | stats () const |
void | initialize (const ChemicalReaction &reaction, const EnumerationTypes::BBS &building_blocks) |
![]() | |
EnumerationStrategyBase () | |
virtual | ~EnumerationStrategyBase () |
virtual const char * | type () const |
void | initialize (const ChemicalReaction &reaction, const EnumerationTypes::BBS &building_blocks) |
virtual void | initializeStrategy (const ChemicalReaction &reaction, const EnumerationTypes::BBS &building_blocks)=0 |
virtual | operator bool () const =0 |
virtual const EnumerationTypes::RGROUPS & | next ()=0 |
The current permutation {r1, r2, ...}. More... | |
virtual EnumerationStrategyBase * | copy () const =0 |
copy the enumeration strategy complete with current state More... | |
const EnumerationTypes::RGROUPS & | getPosition () const |
The current position in the enumeration. More... | |
boost::uint64_t | getNumPermutations () const |
virtual boost::uint64_t | getPermutationIdx () const =0 |
Returns how many permutations have been processed by this strategy. More... | |
bool | skip (boost::uint64_t skipCount) |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
![]() | |
static const boost::uint64_t | EnumerationOverflow |
![]() | |
void | internalInitialize (const EnumerationTypes::RGROUPS &rgroups) |
![]() | |
EnumerationTypes::RGROUPS | m_permutation |
EnumerationTypes::RGROUPS | m_permutationSizes |
boost::uint64_t | m_numPermutations {} |
Randomly sample Pairs evenly from a collection of building blocks This is a good strategy for choosing a relatively small selection of building blocks from a larger set. As the amount of work needed to retrieve the next evenly sample building block grows with the number of samples, this method performs progressively worse as the number of samples gets larger.
See EnumeartionStrategyBase for more details.
Definition at line 55 of file EvenSamplePairs.h.
|
inline |
Definition at line 72 of file EvenSamplePairs.h.
|
inline |
Definition at line 81 of file EvenSamplePairs.h.
|
inlineoverridevirtual |
copy the enumeration strategy complete with current state
Implements RDKit::EnumerationStrategyBase.
Definition at line 135 of file EvenSamplePairs.h.
|
inlineoverridevirtual |
Returns how many permutations have been processed by this strategy.
Implements RDKit::EnumerationStrategyBase.
Definition at line 129 of file EvenSamplePairs.h.
|
inline |
This is a class for enumerating RGroups using Cartesian Products of reagents.
basic usage:
std::vector<MOL_SPTR_VECT> bbs; bbs.push_back( bbs_for_reactants_1 ); bbs.push_back( bbs_for_reactants_2 ); EvenSamplePairsStrategy rgroups; rgroups.initialize(rxn, bbs); for(boost::uint64_t i=0; i<num_samples && rgroups; ++i) { MOL_SPTR_VECT rvect = getReactantsFromRGroups(bbs, rgroups.next()); std::vector<MOL_SPTR_VECT> lprops = rxn.RunReactants(rvect); ... }
Definition at line 145 of file EnumerationStrategyBase.h.
|
overridevirtual |
Implements RDKit::EnumerationStrategyBase.
|
overridevirtual |
The current permutation {r1, r2, ...}.
Implements RDKit::EnumerationStrategyBase.
|
inlineoverridevirtual |
returns true if there are more permutations left random enumerators may always return true...
Implements RDKit::EnumerationStrategyBase.
Definition at line 133 of file EvenSamplePairs.h.
std::string RDKit::EvenSamplePairsStrategy::stats | ( | ) | const |
|
inlineoverridevirtual |
Reimplemented from RDKit::EnumerationStrategyBase.
Definition at line 100 of file EvenSamplePairs.h.
|
friend |
Definition at line 142 of file EvenSamplePairs.h.