 |
ʻOhana
Population structure, admixture history, and selection using learning methods.
|
7 #ifndef JADE_NWK2COV_HPP__
8 #define JADE_NWK2COV_HPP__
10 #include "jade.matrix.hpp"
11 #include "jade.rerooted_tree.hpp"
19 template <
typename TValue>
45 const auto rk = tree.
get_rk();
48 for (
size_t i = 0; i < rk; i++)
49 for (
size_t j = 0; j <= i; j++)
60 #endif // JADE_NWK2COV_HPP__
A template for a class that converts Newick-formatted trees to covariance matrices.
static void execute(std::istream &in, std::ostream &out)
Executes the program through the specified streams.
basic_newick_node< value_type > newick_node_type
The Newick node type.
path_type get_overlap(const size_t node1, const size_t node2) const
static void set_high_precision(std::ostream &out)
Sets the specified stream to scientific notation with a high precision.
A template class representing a node from a Newick tree.
value_type get_length() const
TValue value_type
The value type.
basic_rerooted_tree< value_type > rerooted_tree_type
The rerooted tree type.
void copy_lower_to_upper()
Copies the elements in the lower triangle of the square matrix to the corresponding upper triangle el...
basic_matrix< value_type > matrix_type
The matrix type.