RDKit
Open-source cheminformatics and machine learning.
|
EvenSamplePairsStrategy. More...
#include <EvenSamplePairs.h>
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Static Public Attributes inherited from RDKit::EnumerationStrategyBase | |
static const boost::uint64_t | EnumerationOverflow |
Protected Member Functions inherited from RDKit::EnumerationStrategyBase | |
void | internalInitialize (const EnumerationTypes::RGROUPS &rgroups) |
Protected Attributes inherited from RDKit::EnumerationStrategyBase | |
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 |
Reimplemented from RDKit::EnumerationStrategyBase.
Definition at line 100 of file EvenSamplePairs.h.
Definition at line 142 of file EvenSamplePairs.h.