TTK
Loading...
Searching...
No Matches
Functions
ttk::wae Namespace Reference

Functions

void fixTreePrecisionScalars (ftm::MergeTree< float > &mTree)
 Fix the scalars of a merge tree to ensure that the nesting condition is respected.
 
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 printPairs (ftm::MergeTree< float > &mTree, bool useBD=true)
 Util function to print pairs of a merge tree.
 

Function Documentation

◆ adjustNestingScalars()

void ttk::wae::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.

Parameters
[in]scalarsVectorscalars array to process.
[in]nodenode to adjust.
[in]refNodereference node.

Definition at line 55 of file MergeTreeAutoencoderUtils.cpp.

◆ createBalancedBDT()

void ttk::wae::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).

Parameters
[in]parentsvector containing the possible parents for each node.
[in]childrenvector containing the possible children for each node.
[in]scalarsVectorvector containing the scalars value.
[out]childrenFinaloutput vector containing the children of each node, representing the tree structure.
[in]threadNumbernumber of threads for parallel sort.

Definition at line 81 of file MergeTreeAutoencoderUtils.cpp.

◆ fixTreePrecisionScalars()

void ttk::wae::fixTreePrecisionScalars ( ftm::MergeTree< float > &  mTree)

Fix the scalars of a merge tree to ensure that the nesting condition is respected.

Parameters
[in]mTreeMerge tree to process.

Definition at line 3 of file MergeTreeAutoencoderUtils.cpp.

◆ printPairs()

void ttk::wae::printPairs ( ftm::MergeTree< float > &  mTree,
bool  useBD = true 
)

Util function to print pairs of a merge tree.

Parameters
[in]mTreemerge tree to process.
[in]useBDif the merge tree is in branch decomposition mode or not.

Definition at line 371 of file MergeTreeAutoencoderUtils.cpp.