Template Struct binomial_interval_t

Inheritance Relationships

Base Type

Struct Documentation

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

Generate a breakpoint in an interval with a given probability.

Public Functions

binomial_interval_t(T b, T e, double p)

Note

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

Parameters
  • b: Beginning of interval

  • e: End of interval

  • p: Probability of a breakpoint

void operator()(const gsl_rng *r, std::vector<double> &breakpoints) const final

Generate breakpints

Parameters
  • r: Random number generator

  • breakpoints: container to fill with breakpoints

std::unique_ptr<genetic_map_unit> clone() const final

Clone object

Return

std::unique_ptr to genetic_map_unit.

Public Members

double beg

Beginning of interval (inclusive)

double end

End of interval (exclusive)

double prob

Probability of a breakpoint.