Tree Construction Adapter

DC Tree

Functions

std::shared_ptr<UltrametricTreeNode> build_DCTree(std::vector<std::vector<double>> &data, const std::unordered_map<std::string, std::string> &config = {})
std::shared_ptr<UltrametricTreeNode> convert_from_DCTree(std::shared_ptr<UltrametricTreeNode> &root)
UltrametricTree build_from_DCTree(std::vector<std::vector<double>> &data, const std::unordered_map<std::string, std::string> &config = {})

HST

Functions

Node_t *build_HST(std::vector<std::vector<double>> &data, const std::unordered_map<std::string, std::string> &config = {})
std::shared_ptr<UltrametricTreeNode> convert_from_HST(Node_t *root_HST)
UltrametricTree build_from_HST(std::vector<std::vector<double>> &data, const std::unordered_map<std::string, std::string> &config = {})

MLPack Trees Adapter

Functions

template<typename TreeType>
std::shared_ptr<UltrametricTreeNode> convert_from_MLPackTree(const TreeType &root_MLPackTree, std::vector<size_t> &oldFromNew)
std::shared_ptr<UltrametricTreeNode> convert_from_MLPackTree(std::vector<std::vector<double>> &data, UltrametricTreeType tree_type, const std::unordered_map<std::string, std::string> &config = {})
UltrametricTree build_from_MLPackTree(std::vector<std::vector<double>> &data, UltrametricTreeType tree_type, const std::unordered_map<std::string, std::string> &config = {})

Parse JSON to Tree

Functions

UltrametricTree parse_json_to_tree(const std::unordered_map<std::string, std::string> &config)