TTK
Loading...
Searching...
No Matches
MergeTreeAutoencoderUtils.h
Go to the documentation of this file.
1
7
8#pragma once
9
10#include <FTMTree.h>
11#include <FTMTreeUtils.h>
12#include <FTMTree_MT.h>
13
14namespace ttk {
15
16 namespace wae {
17
25
34 void adjustNestingScalars(std::vector<float> &scalarsVector,
35 ftm::idNode node,
36 ftm::idNode refNode);
37
49 void createBalancedBDT(std::vector<std::vector<ftm::idNode>> &parents,
50 std::vector<std::vector<ftm::idNode>> &children,
51 std::vector<float> &scalarsVector,
52 std::vector<std::vector<ftm::idNode>> &childrenFinal,
53 int threadNumber = 1);
54
62 void printPairs(ftm::MergeTree<float> &mTree, bool useBD = true);
63
64 } // namespace wae
65
66} // namespace ttk
unsigned int idNode
Node index in vect_nodes_.
void printPairs(ftm::MergeTree< float > &mTree, bool useBD=true)
Util function to print pairs of a merge tree.
void adjustNestingScalars(std::vector< float > &scalarsVector, ftm::idNode node, ftm::idNode refNode)
Fix the scalars of a merge tree to ensure that the nesting condition is respected.
void createBalancedBDT(std::vector< std::vector< ftm::idNode > > &parents, std::vector< std::vector< ftm::idNode > > &children, std::vector< float > &scalarsVector, std::vector< std::vector< ftm::idNode > > &childrenFinal, int threadNumber=1)
Create a balanced BDT structure (for output basis initialization).
void fixTreePrecisionScalars(ftm::MergeTree< float > &mTree)
Fix the scalars of a merge tree to ensure that the nesting condition is respected.
The Topology ToolKit.