11 #ifndef MMPARAMETRIZATION_FRAGMENTDATADISTRIBUTOR_H
12 # define MMPARAMETRIZATION_FRAGMENTDATADISTRIBUTOR_H
19 namespace MMParametrization {
20 struct ParametrizationData;
50 std::vector<std::vector<std::string>> failedCalculationIds = {})
const;
76 bool fragmentIsCoveredByData(
int fragmentIndex,
const std::vector<int>& candidates,
bool refineConnectivity,
77 const std::vector<int>& failedCalculations,
78 std::vector<std::vector<std::string>> failedCalculationIds)
const;
83 bool fragmentIsHopeless(
const std::vector<int>& candidates,
const std::vector<int>& failedCalculations)
const;
93 #endif // MMPARAMETRIZATION_FRAGMENTDATADISTRIBUTOR_H
FragmentDataDistributor(ParametrizationData &data, Core::Log &log)
Constructor.
Definition: FragmentDataDistributor.cpp:15
This class handles the distribution of the available data for the parameter optimization. This mainly includes the task of providing a list of candidate fragments from which to take reference data for the parameters associated with a given atom.
Definition: FragmentDataDistributor.h:28
std::vector< int > getCandidateFragments(int fragmentIndex) const
Returns the indices of candidate fragments to get the data from for the given fragment index 'fragmen...
Definition: FragmentDataDistributor.cpp:93
void updateCandidateFragmentsWithThirdShellNeighbors(int fragmentIndex, std::vector< int > &listOfCandidates) const
Updates a given list of candidate fragments with third shell neighboring atoms (neighbors of neighbor...
Definition: FragmentDataDistributor.cpp:114
This struct holds all objects used inside the MM parametrization algorithm.
Definition: ParametrizationData.h:29
bool referenceDataIsSufficient(bool refineConnectivity, std::vector< int > failedCalculations={}, std::vector< std::vector< std::string >> failedCalculationIds={}) const
Checks whether the reference data that has already been collected is sufficient to perform the parame...
Definition: FragmentDataDistributor.cpp:18
void updateCandidateFragments(int fragmentIndex, std::vector< int > &listOfCandidates) const
Updates a given list of candidate fragments to get the data from for the given fragment index 'fragme...
Definition: FragmentDataDistributor.cpp:99