|
faunus
|
Helper class for Cluster move for finding clusters. More...
#include <clustermove.h>
Public Member Functions | |
| std::optional< size_t > | findSeed (Random &random) |
| Find first group; exclude satellites. More... | |
| std::pair< std::vector< size_t >, bool > | findCluster (size_t seed_index) |
| Find cluster. More... | |
| FindCluster (const Space &spc, const json &j) | |
Public Attributes | |
| std::vector< size_t > | molecule_index |
| index of all possible molecules to be considered | |
Friends | |
| void | to_json (json &j, const FindCluster &cluster) |
| Serialize to json. | |
Helper class for Cluster move for finding clusters.
| std::pair< std::vector< size_t >, bool > Faunus::move::FindCluster::findCluster | ( | size_t | seed_index | ) |
Find cluster.
| seed_index | Index of seed_index group to evaluate the cluster around |
| std::optional< size_t > Faunus::move::FindCluster::findSeed | ( | Random & | random | ) |
Find first group; exclude satellites.
Satellites are molecules that cannot be used to seed a cluster but can be part of it, i.e.
rotated and translated. Here we therefore filter out any satellite molecules, and pick a random molecule index of what remains.
1.8.13