SelectSegment
-
class SelectSegment : public feasst::TrialSelectParticle
Select a random segment.
Subclassed by feasst::SelectEndSegment
Public Functions
-
SelectSegment(argtype args = argtype())
args:
max_length : maximum length of selected segment. If -1 (default), then randomly select all possible lengths.
-
int max_length() const
Return the maximum length.
-
bool random_segment_in_particle(const Configuration &config, Select *select, Random *random, const int max_length = -1)
Select all sites between two randomly selected sites in a randomly selected particle in group. Return true if selection is valid
- param max_length:
Set the maximum length of the segment. If -1 (default), consider all possible lengths.
-
SelectSegment(argtype args = argtype())