Template Struct poisson_interval_t

Inheritance Relationships

Base Type

Struct Documentation

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

Generate a Poisson number of breakpoints in an interval.

Public Functions

poisson_interval_t(T b, T e, double m)

Note

The interval is half-open on [b, e).

Parameters
  • b: Beginning of interval

  • e: End of interval

  • m: Mean number of breakpoints

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 interval (inclusive)

const double end

End of interval (exclusive)

const double mean

Mean number of breakpoints.