Template Struct fixed_number_crossovers_t

Inheritance Relationships

Base Type

Struct Documentation

template<typename T>
struct fwdpp::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 interval

  • e: End of interval

  • n: 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_ptr to genetic_map_unit.

Public Members

const double beg

Beginning of range (inclusive)

const double end

End of range (exclusive)

const int nxovers

Number of crossovers.