Template Struct binomial_point_t

Inheritance Relationships

Base Type

Struct Documentation

template<typename T>
struct fwdpp::binomial_point_t : public fwdpp::genetic_map_unit

Generate a breakpoint at a specific position with a given probability.

Public Functions

binomial_point_t(const T pos, const double pr)

Parameters
  • pos: The breakpoint position

  • pr: The probability of a breakpoint

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

T position

Breakpoint position.

double prob

Breakpoint probability.