A toolkit for working with phylogenetic data.
v0.18.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
squash_clustering.cpp File Reference
#include "genesis/tree/mass_tree/squash_clustering.hpp"
#include "genesis/tree/mass_tree/emd.hpp"
#include "genesis/tree/mass_tree/functions.hpp"
#include "genesis/utils/core/logging.hpp"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <stdexcept>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::tree
 

Functions

std::string squash_cluster_tree (SquashClustering const &sc, std::vector< std::string > const &labels)
 Build a Newick-format tree for visualizing the result of a squash_clustering(). More...
 
SquashClustering squash_clustering (std::vector< MassTree > &&trees, double const p=1.0)
 Perfom Squash Clustering. More...
 
SquashClustering squash_clustering_init (std::vector< MassTree > &&trees, double const p)
 
void squash_clustering_merge_clusters (SquashClustering &sc, size_t i, size_t j, double const p)
 
std::pair< size_t, size_t > squash_clustering_min_entry (SquashClustering const &sc)