libsequence  1.9.5
Sequence::countDerivedStates Struct Reference

Functor to count the number of derived states, excluding gaps and missing data, in a range of characters. More...

#include <PolyFunctional.hpp>

Public Member Functions

template<typename charItr >
stateCounter operator() (charItr beg, charItr end, const bool &haveOutgroup=true, const size_t &outgroup=0)
 

Detailed Description

Functor to count the number of derived states, excluding gaps and missing data, in a range of characters.

Definition at line 82 of file PolyFunctional.hpp.

Member Function Documentation

◆ operator()()

template<typename charItr >
stateCounter Sequence::countDerivedStates::operator() ( charItr  beg,
charItr  end,
const bool &  haveOutgroup = true,
const size_t &  outgroup = 0 
)
inline
Parameters
begbeginning of a range of characters
endend of a range of characters
haveOutgrouptrue of one of the elements of site is an outgroup state, false otherwise
outgroupthe index of the outgroup sequence in site
Note
will return an empty object if beg>=end or beg+outgroup>=end or haveOutgroup==false

Definition at line 89 of file PolyFunctional.hpp.


The documentation for this struct was generated from the following file: