libsequence
1.9.5
|
Calculate the number of mutations at a polymorphic site. More...
#include <Sequence/PolyFunctional.hpp>
Public Types | |
typedef unsigned | result_type |
Public Member Functions | |
unsigned | operator() (unsigned &nm, const polymorphicSite &site, const bool &haveOutgroup=false, const unsigned &outgroup=0) const |
Calculate the number of mutations at a polymorphic site.
Function object to keep track of the number of mutations in a range of polymorphic sites. The template argument specifies the counting behavior, i.e. countStates or countDerivedStates. It is designed to be used with std::accumulate, and will need std::bind for the necessary arguments
Definition at line 224 of file PolyFunctional.hpp.
typedef unsigned Sequence::nmuts< counter >::result_type |
allows std::bind to be used in a simple way
Definition at line 229 of file PolyFunctional.hpp.
|
inline |
nm | a value of nmuts to increment |
site | an object representing the value type of PolyTable::const_site_iterator |
haveOutgroup | true of one of the elements of site is an outgroup state, false otherwise |
outgroup | the index of the outgroup sequence in site |
Definition at line 230 of file PolyFunctional.hpp.