1 #ifndef GEESE_TYPES_HPP
2 #define GEESE_TYPES_HPP
4 #define POS(a,b) (b)*N + (a)
33 const std::vector< double > & blengths_,
34 const std::vector< bool > & states_,
35 bool duplication_ =
true,
36 bool has_leaf_ =
false
46 std::vector< size_t > data;
47 std::vector< double > * counters;
51 std::vector< size_t >
data_,
52 std::vector< double > *
counters_ =
nullptr
57 size_t at(
size_t d) {
return data.at(d);};
65 std::vector< size_t >::iterator
begin() {
return data.begin();};
66 std::vector< size_t >::iterator
end() {
return data.end();};
75 const std::vector< double > *
counts;
82 const std::vector< double > * counts_,
107 typedef barry::Rule<PhyloArray,PhyloRuleData>
PhyloRule;
113 typedef barry::Support<PhyloArray, PhyloCounterData, PhyloRuleData, PhyloRuleDynData >
PhyloSupport;
115 typedef barry::Model<PhyloArray, PhyloCounterData, PhyloRuleData, PhyloRuleDynData >
PhyloModel;
Data definition for the PhyloArray class.
std::vector< double > blengths
std::vector< bool > states
bool has_leaf
Whether the node has a leaf as offspring.
bool duplication
Whether the node is a duplication.
NodeData(const std::vector< double > &blengths_, const std::vector< bool > &states_, bool duplication_=true, bool has_leaf_=false)
size_t operator()(size_t d)
std::vector< size_t >::iterator end()
PhyloCounterData(std::vector< size_t > data_, std::vector< double > *counters_=nullptr)
std::vector< size_t >::iterator begin()
std::vector< double > * get_counters()
size_t operator[](size_t d)
const double operator()() const
PhyloRuleDynData(const std::vector< double > *counts_, size_t pos_, size_t lb_, size_t ub_, size_t duplication_)
const std::vector< double > * counts
Data_Type &&counter_ data(std::move(counter_.data))
Data_Type Counter_fun_type< Array_Type, Data_Type > Hasher_fun_type< Array_Type, Data_Type > Data_Type data_
barry::Counters< PhyloArray, PhyloCounterData > PhyloCounters
barry::Model< PhyloArray, PhyloCounterData, PhyloRuleData, PhyloRuleDynData > PhyloModel
std::vector< std::pair< size_t, size_t > > PhyloRuleData
barry::Rule< PhyloArray, PhyloRuleData > PhyloRule
barry::BArrayDense< size_t, NodeData > PhyloArray
barry::Counter< PhyloArray, PhyloCounterData > PhyloCounter
barry::StatsCounter< PhyloArray, PhyloCounterData > PhyloStatsCounter
barry::Rule< PhyloArray, PhyloRuleDynData > PhyloRuleDyn
barry::Rules< PhyloArray, PhyloRuleDynData > PhyloRulesDyn
barry::PowerSet< PhyloArray, PhyloRuleData > PhyloPowerSet
barry::Support< PhyloArray, PhyloCounterData, PhyloRuleData, PhyloRuleDynData > PhyloSupport
barry::Rules< PhyloArray, PhyloRuleData > PhyloRules