Template Struct fixed_number_crossovers_t¶
Defined in File fixed_number_crossovers.hpp
Inheritance Relationships¶
Base Type¶
public fwdpp::genetic_map_unit(Struct genetic_map_unit)
Struct Documentation¶
-
template<typename
T>
structfwdpp::fixed_number_crossovers_t: public fwdpp::genetic_map_unit¶ Generate a specific number of breakpoints in an interval.
Public Functions
-
fixed_number_crossovers_t(T b, T e, int n)¶ - Note
The interval is half-open on [b, e).
- Parameters
b: Beginning of intervale: End of intervaln: Number of braekpoints to generate
-
void
operator()(const gsl_rng *r, std::vector<double> &breakpoints) const final¶ - Note
Future revisions may change the return type to void and allow for a reusable vector.
-
std::unique_ptr<genetic_map_unit>
clone() const final¶ Clone object
- Return
std::unique_ptrto genetic_map_unit.
-