Struct no_selection

Struct Documentation

struct fwdpp::no_selection

Returns a fitness of 1.

Return

A fitness of 1

Note

g1 and g2 must be part of the haploid_genome_base hierarchy

Parameters
  • g1: A haploid_genome

  • g2: A haploid_genome

Public Types

using result_type = double

Method for standard diploid simulations of a single locus.

Public Functions

template<typename haploid_genome_type, typename mcont_t>
result_type operator()(const haploid_genome_type&, const haploid_genome_type&, const mcont_t&) const noexcept
template<typename T>
result_type operator()(const T&) const noexcept

Naive implementation for non-standard cases.