Struct mutation

Inheritance Relationships

Base Type

Struct Documentation

struct fwdpp::mutation : public fwdpp::mutation_base

Mutations with selection, dominance, and tracking age of origin The “standard” mutation type for population genetic simulation. A mutation has its own selection and dominance coefficients.

Public Types

using constructor_tuple = std::tuple<double, double, double, unsigned, std::uint16_t>

Alias for tuple type that can be used for object construction.

Public Functions

mutation(const double &__pos, const double &__s, const double &__h, const unsigned &__g, const std::uint16_t x = 0) noexcept

Constructor.

Parameters
  • __pos: Mutation position

  • __s: Selection coefficient

  • __h: Dominance coefficient

  • __g: Generation when mutation arose

  • x: Value to assign to mutation_base::xtra

mutation(constructor_tuple t) noexcept

Construct from a tuple.

Version

Added in fwdpp 0.5.7

Parameters
  • t: Elements must be pos, s, h, g, x

bool operator==(const mutation &rhs) const

Public Members

uint_t g

The generation when the mutation arose.

double s

Selection coefficient.

double h

Dominance of the mutation.