|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_PLACEMENT_FUNCTION_OPERATORS_H_
2 #define GENESIS_PLACEMENT_FUNCTION_OPERATORS_H_
58 class PlacementEdgeData;
59 class PlacementNodeData;
118 Sample
const& smp,
double const sign,
double const scaler,
tree::MassTree& target
132 std::pair< tree::TreeSet, std::vector<double> >
142 std::ostream&
operator << ( std::ostream& out, Sample
const& smp );
153 #endif // include guard
std::pair< tree::MassTree, double > convert_sample_to_mass_tree(Sample const &sample, bool normalize)
Convert a Sample to a tree::MassTree.
Tree MassTree
Alias for a Tree that stores masses on its TreeEdges.
double add_sample_to_mass_tree(Sample const &smp, double const sign, double const scaler, tree::MassTree &target)
Helper function to copy masses from a Sample to a MassTree.
Class for representing phylogenetic trees.
tree::Tree PlacementTree
Alias for a tree::Tree used for a tree with information needed for storing Pqueries....
Tree CommonTree
Alias for a Tree with data types CommonNodeData and CommonEdgeData.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::pair< tree::TreeSet, std::vector< double > > convert_sample_set_to_mass_trees(SampleSet const &sample_set, bool normalize)
Convert all Samples in a SampleSet to tree::MassTrees.
std::string print_tree(Sample const &smp)
Return a simple view of the Tree of a Sample with information about the Pqueries on it.
PlacementTree convert_common_tree_to_placement_tree(tree::CommonTree const &source_tree)
Convert a CommonTree into a PlacementTree.
void normalize(Histogram &h, double total)
std::ostream & operator<<(std::ostream &out, Sample const &smp)
Print a table of all Pqueries with their Placements and Names to the stream.
bool compatible_trees(PlacementTree const &lhs, PlacementTree const &rhs)
Return whether two PlacementTrees are compatible.