Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
tag.hpp
1// Copyright 2022 Arnaud Becheler <arnaud.becheler@gmail.com>
2
3/*********************************************************************** * This program is free software; you can
4 *redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free
5 *Software Foundation; either version 2 of the License, or * (at your option) any later version. *
6 * *
7 ***************************************************************************/
8
9#ifndef __QUETZAL_ACCUMULATOR_H_INCLUDED__
10#define __QUETZAL_ACCUMULATOR_H_INCLUDED__
11
12#include <boost/accumulators/framework/accumulator_base.hpp>
13#include <boost/accumulators/framework/parameters/sample.hpp>
14
15namespace boost::accumulators::tag
16{
17struct segregating_sites;
18struct pairwise_differences;
19
23struct tajima : depends_on<count, pairwise_differences, segregating_sites>
24{
25 // Define a nested typedef called 'impl' that specifies which accumulator implements this feature.
26 typedef accumulators::impl::tajima_accumulator<mpl::_1> impl;
27};
28} // namespace boost::accumulators::tag
29
30#endif