SelectEndSegment
-
class SelectEndSegment : public feasst::SelectSegment
Select an end segment. Set the anchor as the other end of the selection from the end point.
Subclassed by feasst::SelectReptate
Arguments
SelectSegment arguments.
Public Functions
-
bool random_end_segment_in_particle(const Configuration &config, const int max_length, Select *select, Random *random, bool *is_endpoint_beginning)
Select all sites between a random endpoint and a randomly selectioned site in a randomly selected particle in group. Return true if the endpoint is at the beginning.
- param is_endpoint_beginning:
Set the maximum length of the segment. If -1 (default), consider all possible lengths.