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 HaploidGenomeType, typename MutationContainerType>
result_type operator()(const HaploidGenomeType&, const HaploidGenomeType&, const MutationContainerType&) const noexcept
template<typename T>
result_type operator()(const T&) const noexcept

Naive implementation for non-standard cases.