TTK
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ttk::MergeTreeBase Class Reference

#include <MergeTreeBase.h>

Inheritance diagram for ttk::MergeTreeBase:
ttk::Debug ttk::BaseClass ttk::MergeTreeAxesAlgorithmBase ttk::MergeTreeBarycenter ttk::MergeTreeDistance ttk::MergeTreeDistanceMatrix ttk::MergeTreeTemporalReduction ttk::MergeTreeTemporalReductionDecoding ttk::MergeTreeAutoencoder ttk::MergeTreePrincipalGeodesicsBase ttk::MergeTreeClustering< dataType2 > ttkMergeTreeDistanceMatrix ttkMergeTreeTemporalReduction ttkMergeTreeTemporalReductionDecoding ttk::MergeTreeAutoencoderDecoding ttkMergeTreeAutoencoder ttk::MergeTreePrincipalGeodesics ttk::MergeTreePrincipalGeodesicsDecoding ttkMergeTreeAutoencoderDecoding ttkMergeTreePrincipalGeodesics ttkMergeTreePrincipalGeodesicsDecoding

Public Member Functions

 MergeTreeBase ()
 
void setAssignmentSolver (int assignmentSolver)
 
void setEpsilon1UseFarthestSaddle (bool b)
 
void setEpsilonTree1 (double epsilon)
 
void setEpsilonTree2 (double epsilon)
 
void setEpsilon2Tree1 (double epsilon)
 
void setEpsilon2Tree2 (double epsilon)
 
void setEpsilon3Tree1 (double epsilon)
 
void setEpsilon3Tree2 (double epsilon)
 
void setPersistenceThreshold (double pt)
 
void setParallelize (bool para)
 
void setNodePerTask (int npt)
 
void setBranchDecomposition (bool useBD)
 
void setNormalizedWasserstein (bool normalizedWasserstein)
 
void setKeepSubtree (bool keepSubtree)
 
void setNonMatchingWeight (double weight)
 
void setBarycenterMergeTree (bool imt)
 
void setDistanceSquaredRoot (bool distanceSquaredRoot)
 
void setUseMinMaxPair (bool useMinMaxPair)
 
void setDeleteMultiPersPairs (bool deleteMultiPersPairsT)
 
void setCleanTree (bool clean)
 
void setIsPersistenceDiagram (bool isPD)
 
std::vector< std::vector< int > > getTreesNodeCorr ()
 
double mixDistancesMinMaxPairWeight (bool isFirstInput)
 
double mixDistancesWeight (bool isFirstInput)
 
template<class dataType >
double mixDistances (dataType distance1, dataType distance2)
 
template<class dataType >
void mixDistancesMatrix (std::vector< std::vector< dataType > > &distanceMatrix, std::vector< std::vector< dataType > > &distanceMatrix2)
 
template<class dataType >
void mergeSaddle (ftm::FTMTree_MT *tree, double epsilon, std::vector< std::vector< ftm::idNode > > &treeNodeMerged, bool mergeByPersistence=false)
 
template<class dataType >
void persistenceMerging (ftm::FTMTree_MT *tree, double epsilon2, double epsilon3=100)
 
template<class dataType >
void keepMostImportantPairs (ftm::FTMTree_MT *tree, int n, bool useBD)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree, double persistenceThresholdT, std::vector< ftm::idNode > &deletedNodes)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree, std::vector< ftm::idNode > &deletedNodes)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree, double persistenceThresholdT)
 
template<class dataType >
void persistenceThresholding (ftm::FTMTree_MT *tree)
 
template<class dataType >
void verifyOrigins (ftm::FTMTree_MT *tree)
 
template<class dataType >
void preprocessTree (ftm::FTMTree_MT *tree, bool deleteInconsistentNodes=true)
 
template<class dataType >
ftm::FTMTree_MTcomputeBranchDecomposition (ftm::FTMTree_MT *tree, std::vector< std::vector< ftm::idNode > > &treeNodeMerged)
 
template<class dataType >
void dontUseMinMaxPair (ftm::FTMTree_MT *tree)
 
void verifyPairsTree (ftm::FTMTree_MT *tree)
 
template<class dataType >
void deleteMultiPersPairs (ftm::FTMTree_MT *tree, bool useBD)
 
template<class dataType >
void preprocessingPipeline (ftm::MergeTree< dataType > &mTree, double epsilonTree, double epsilon2Tree, double epsilon3Tree, bool branchDecompositionT, bool useMinMaxPairT, bool cleanTreeT, double persistenceThreshold, std::vector< int > &nodeCorr, bool deleteInconsistentNodes=true)
 
template<class dataType >
void preprocessingPipeline (ftm::MergeTree< dataType > &mTree, double epsilonTree, double epsilon2Tree, double epsilon3Tree, bool branchDecompositionT, bool useMinMaxPairT, bool cleanTreeT, std::vector< int > &nodeCorr, bool deleteInconsistentNodes=true)
 
void reverseNodeCorr (ftm::FTMTree_MT *tree, std::vector< int > &nodeCorr)
 
template<class dataType >
void mtFlattening (ftm::MergeTree< dataType > &mt)
 
template<class dataType >
void mtsFlattening (std::vector< ftm::MergeTree< dataType > > &mts)
 
double getSizeLimitMetric (std::vector< ftm::FTMTree_MT * > &trees)
 
template<class dataType >
void copyMinMaxPair (ftm::MergeTree< dataType > &mTree1, ftm::MergeTree< dataType > &mTree2, bool setOrigins=false)
 
template<class dataType >
std::tuple< int, dataType > fixMergedRootOrigin (ftm::FTMTree_MT *tree)
 
template<class dataType >
void branchDecompositionToTree (ftm::FTMTree_MT *tree)
 
template<class dataType >
void putBackMergedNodes (ftm::FTMTree_MT *tree)
 
template<class dataType >
void postprocessingPipeline (ftm::FTMTree_MT *tree)
 
template<class dataType >
void convertBranchDecompositionMatching (ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &outputMatching)
 
template<class dataType >
void convertBranchDecompositionMatching (ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, std::vector< std::tuple< ftm::idNode, ftm::idNode > > &outputMatching)
 
template<class dataType >
void identifyRealMatching (ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, std::vector< std::tuple< ftm::idNode, ftm::idNode > > &outputMatching, std::vector< std::tuple< ftm::idNode, ftm::idNode, bool > > &realMatching)
 
template<class dataType >
dataType computeDistance (dataType x1, dataType x2, dataType y1, dataType y2, double power=2)
 
template<class dataType >
dataType deleteCost (ftm::FTMTree_MT *tree, ftm::idNode nodeId)
 
template<class dataType >
dataType insertCost (ftm::FTMTree_MT *tree, ftm::idNode nodeId)
 
template<class dataType >
dataType relabelCostOnly (ftm::FTMTree_MT *tree1, ftm::idNode nodeId1, ftm::FTMTree_MT *tree2, ftm::idNode nodeId2)
 
template<class dataType >
dataType relabelCost (ftm::FTMTree_MT *tree1, ftm::idNode nodeId1, ftm::FTMTree_MT *tree2, ftm::idNode nodeId2)
 
void getParamNames (std::vector< std::string > &paramNames)
 
double getParamValueFromName (std::string &paramName)
 
void setParamValueFromName (std::string &paramName, double value)
 
void getTreesStats (std::vector< ftm::FTMTree_MT * > &trees, std::array< double, 3 > &stats)
 
void printTreesStats (std::vector< ftm::FTMTree_MT * > &trees)
 
template<class dataType >
void printTreesStats (std::vector< ftm::MergeTree< dataType > > &trees)
 
template<class dataType >
void printTableVector (std::vector< std::vector< dataType > > &table)
 
template<class dataType >
void printTable (dataType *table, int nRows, int nCols)
 
void printMatching (std::vector< MatchingType > &matchings)
 
void printMatching (std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &matchings)
 
void printMatching (std::vector< std::tuple< ftm::idNode, ftm::idNode > > &matchings)
 
template<class dataType >
void printPairs (std::vector< std::tuple< SimplexId, SimplexId, dataType > > &treePairs)
 
template<class dataType >
void printOutputMatching (std::vector< std::tuple< ftm::idNode, ftm::idNode > > &outputMatching, ftm::FTMTree_MT *tree1, ftm::FTMTree_MT *tree2, bool computeCosts=true)
 
- Public Member Functions inherited from ttk::Debug
 Debug ()
 
 ~Debug () override
 
virtual int setDebugLevel (const int &debugLevel)
 
int setWrapper (const Wrapper *wrapper) override
 
int printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
void setDebugMsgPrefix (const std::string &prefix)
 
- Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
 
virtual ~BaseClass ()=default
 
int getThreadNumber () const
 
virtual int setThreadNumber (const int threadNumber)
 

Protected Attributes

int assignmentSolverID_ = 0
 
bool epsilon1UseFarthestSaddle_ = false
 
double epsilonTree1_ = 0
 
double epsilonTree2_ = 0
 
double epsilon2Tree1_ = 100
 
double epsilon2Tree2_ = 100
 
double epsilon3Tree1_ = 100
 
double epsilon3Tree2_ = 100
 
double persistenceThreshold_ = 0
 
bool barycenterMergeTree_ = false
 
bool useMinMaxPair_ = true
 
bool deleteMultiPersPairs_ = false
 
bool branchDecomposition_ = true
 
int wassersteinPower_ = 2
 
bool normalizedWasserstein_ = true
 
bool keepSubtree_ = false
 
double nonMatchingWeight_ = 1.0
 
bool distanceSquaredRoot_ = true
 
bool useFullMerge_ = false
 
bool isPersistenceDiagram_ = false
 
bool convertToDiagram_ = false
 
double mixtureCoefficient_ = 0.5
 
bool useDoubleInput_ = false
 
bool parallelize_ = true
 
int nodePerTask_ = 32
 
bool cleanTree_ = true
 
std::vector< std::vector< int > > treesNodeCorr_
 
- Protected Attributes inherited from ttk::Debug
int debugLevel_
 
std::string debugMsgPrefix_
 
std::string debugMsgNamePrefix_
 
- Protected Attributes inherited from ttk::BaseClass
bool lastObject_
 
int threadNumber_
 
Wrapperwrapper_
 

Additional Inherited Members

- Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
 
int welcomeMsg (std::ostream &stream)
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

Definition at line 24 of file MergeTreeBase.h.

Constructor & Destructor Documentation

◆ MergeTreeBase()

ttk::MergeTreeBase::MergeTreeBase ( )
inline

Definition at line 64 of file MergeTreeBase.h.

Member Function Documentation

◆ branchDecompositionToTree()

template<class dataType >
void ttk::MergeTreeBase::branchDecompositionToTree ( ftm::FTMTree_MT tree)
inline

Definition at line 808 of file MergeTreeBase.h.

◆ computeBranchDecomposition()

template<class dataType >
ftm::FTMTree_MT * ttk::MergeTreeBase::computeBranchDecomposition ( ftm::FTMTree_MT tree,
std::vector< std::vector< ftm::idNode > > &  treeNodeMerged 
)
inline

Definition at line 479 of file MergeTreeBase.h.

◆ computeDistance()

template<class dataType >
dataType ttk::MergeTreeBase::computeDistance ( dataType  x1,
dataType  x2,
dataType  y1,
dataType  y2,
double  power = 2 
)
inline

Definition at line 1108 of file MergeTreeBase.h.

◆ convertBranchDecompositionMatching() [1/2]

template<class dataType >
void ttk::MergeTreeBase::convertBranchDecompositionMatching ( ftm::FTMTree_MT tree1,
ftm::FTMTree_MT tree2,
std::vector< std::tuple< ftm::idNode, ftm::idNode > > &  outputMatching 
)
inline

Definition at line 1067 of file MergeTreeBase.h.

◆ convertBranchDecompositionMatching() [2/2]

template<class dataType >
void ttk::MergeTreeBase::convertBranchDecompositionMatching ( ftm::FTMTree_MT tree1,
ftm::FTMTree_MT tree2,
std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &  outputMatching 
)
inline

Definition at line 1025 of file MergeTreeBase.h.

◆ copyMinMaxPair()

template<class dataType >
void ttk::MergeTreeBase::copyMinMaxPair ( ftm::MergeTree< dataType > &  mTree1,
ftm::MergeTree< dataType > &  mTree2,
bool  setOrigins = false 
)
inline

Definition at line 747 of file MergeTreeBase.h.

◆ deleteCost()

template<class dataType >
dataType ttk::MergeTreeBase::deleteCost ( ftm::FTMTree_MT tree,
ftm::idNode  nodeId 
)
inline

Definition at line 1119 of file MergeTreeBase.h.

◆ deleteMultiPersPairs()

template<class dataType >
void ttk::MergeTreeBase::deleteMultiPersPairs ( ftm::FTMTree_MT tree,
bool  useBD 
)
inline

Definition at line 623 of file MergeTreeBase.h.

◆ dontUseMinMaxPair()

template<class dataType >
void ttk::MergeTreeBase::dontUseMinMaxPair ( ftm::FTMTree_MT tree)
inline

Definition at line 579 of file MergeTreeBase.h.

◆ fixMergedRootOrigin()

template<class dataType >
std::tuple< int, dataType > ttk::MergeTreeBase::fixMergedRootOrigin ( ftm::FTMTree_MT tree)
inline

Definition at line 789 of file MergeTreeBase.h.

◆ getParamNames()

void ttk::MergeTreeBase::getParamNames ( std::vector< std::string > &  paramNames)
inline

Definition at line 1204 of file MergeTreeBase.h.

◆ getParamValueFromName()

double ttk::MergeTreeBase::getParamValueFromName ( std::string &  paramName)
inline

Definition at line 1218 of file MergeTreeBase.h.

◆ getSizeLimitMetric()

double ttk::MergeTreeBase::getSizeLimitMetric ( std::vector< ftm::FTMTree_MT * > &  trees)
inline

Definition at line 735 of file MergeTreeBase.h.

◆ getTreesNodeCorr()

std::vector< std::vector< int > > ttk::MergeTreeBase::getTreesNodeCorr ( )
inline

Definition at line 154 of file MergeTreeBase.h.

◆ getTreesStats()

void ttk::MergeTreeBase::getTreesStats ( std::vector< ftm::FTMTree_MT * > &  trees,
std::array< double, 3 > &  stats 
)
inline

Definition at line 1270 of file MergeTreeBase.h.

◆ identifyRealMatching()

template<class dataType >
void ttk::MergeTreeBase::identifyRealMatching ( ftm::FTMTree_MT tree1,
ftm::FTMTree_MT tree2,
std::vector< std::tuple< ftm::idNode, ftm::idNode > > &  outputMatching,
std::vector< std::tuple< ftm::idNode, ftm::idNode, bool > > &  realMatching 
)
inline

Definition at line 1087 of file MergeTreeBase.h.

◆ insertCost()

template<class dataType >
dataType ttk::MergeTreeBase::insertCost ( ftm::FTMTree_MT tree,
ftm::idNode  nodeId 
)
inline

Definition at line 1142 of file MergeTreeBase.h.

◆ keepMostImportantPairs()

template<class dataType >
void ttk::MergeTreeBase::keepMostImportantPairs ( ftm::FTMTree_MT tree,
int  n,
bool  useBD 
)
inline

Definition at line 356 of file MergeTreeBase.h.

◆ mergeSaddle()

template<class dataType >
void ttk::MergeTreeBase::mergeSaddle ( ftm::FTMTree_MT tree,
double  epsilon,
std::vector< std::vector< ftm::idNode > > &  treeNodeMerged,
bool  mergeByPersistence = false 
)
inline

Definition at line 195 of file MergeTreeBase.h.

◆ mixDistances()

template<class dataType >
double ttk::MergeTreeBase::mixDistances ( dataType  distance1,
dataType  distance2 
)
inline

Definition at line 175 of file MergeTreeBase.h.

◆ mixDistancesMatrix()

template<class dataType >
void ttk::MergeTreeBase::mixDistancesMatrix ( std::vector< std::vector< dataType > > &  distanceMatrix,
std::vector< std::vector< dataType > > &  distanceMatrix2 
)
inline

Definition at line 182 of file MergeTreeBase.h.

◆ mixDistancesMinMaxPairWeight()

double ttk::MergeTreeBase::mixDistancesMinMaxPairWeight ( bool  isFirstInput)
inline

Definition at line 161 of file MergeTreeBase.h.

◆ mixDistancesWeight()

double ttk::MergeTreeBase::mixDistancesWeight ( bool  isFirstInput)
inline

Definition at line 169 of file MergeTreeBase.h.

◆ mtFlattening()

template<class dataType >
void ttk::MergeTreeBase::mtFlattening ( ftm::MergeTree< dataType > &  mt)
inline

Definition at line 720 of file MergeTreeBase.h.

◆ mtsFlattening()

template<class dataType >
void ttk::MergeTreeBase::mtsFlattening ( std::vector< ftm::MergeTree< dataType > > &  mts)
inline

Definition at line 730 of file MergeTreeBase.h.

◆ persistenceMerging()

template<class dataType >
void ttk::MergeTreeBase::persistenceMerging ( ftm::FTMTree_MT tree,
double  epsilon2,
double  epsilon3 = 100 
)
inline

Definition at line 317 of file MergeTreeBase.h.

◆ persistenceThresholding() [1/4]

template<class dataType >
void ttk::MergeTreeBase::persistenceThresholding ( ftm::FTMTree_MT tree)
inline

Definition at line 418 of file MergeTreeBase.h.

◆ persistenceThresholding() [2/4]

template<class dataType >
void ttk::MergeTreeBase::persistenceThresholding ( ftm::FTMTree_MT tree,
double  persistenceThresholdT 
)
inline

Definition at line 410 of file MergeTreeBase.h.

◆ persistenceThresholding() [3/4]

template<class dataType >
void ttk::MergeTreeBase::persistenceThresholding ( ftm::FTMTree_MT tree,
double  persistenceThresholdT,
std::vector< ftm::idNode > &  deletedNodes 
)
inline

Definition at line 367 of file MergeTreeBase.h.

◆ persistenceThresholding() [4/4]

template<class dataType >
void ttk::MergeTreeBase::persistenceThresholding ( ftm::FTMTree_MT tree,
std::vector< ftm::idNode > &  deletedNodes 
)
inline

Definition at line 403 of file MergeTreeBase.h.

◆ postprocessingPipeline()

template<class dataType >
void ttk::MergeTreeBase::postprocessingPipeline ( ftm::FTMTree_MT tree)
inline

Definition at line 1003 of file MergeTreeBase.h.

◆ preprocessingPipeline() [1/2]

template<class dataType >
void ttk::MergeTreeBase::preprocessingPipeline ( ftm::MergeTree< dataType > &  mTree,
double  epsilonTree,
double  epsilon2Tree,
double  epsilon3Tree,
bool  branchDecompositionT,
bool  useMinMaxPairT,
bool  cleanTreeT,
double  persistenceThreshold,
std::vector< int > &  nodeCorr,
bool  deleteInconsistentNodes = true 
)
inline

Definition at line 630 of file MergeTreeBase.h.

◆ preprocessingPipeline() [2/2]

template<class dataType >
void ttk::MergeTreeBase::preprocessingPipeline ( ftm::MergeTree< dataType > &  mTree,
double  epsilonTree,
double  epsilon2Tree,
double  epsilon3Tree,
bool  branchDecompositionT,
bool  useMinMaxPairT,
bool  cleanTreeT,
std::vector< int > &  nodeCorr,
bool  deleteInconsistentNodes = true 
)
inline

Definition at line 696 of file MergeTreeBase.h.

◆ preprocessTree()

template<class dataType >
void ttk::MergeTreeBase::preprocessTree ( ftm::FTMTree_MT tree,
bool  deleteInconsistentNodes = true 
)
inline

Definition at line 446 of file MergeTreeBase.h.

◆ printMatching() [1/3]

void ttk::MergeTreeBase::printMatching ( std::vector< MatchingType > &  matchings)
inline

Definition at line 1338 of file MergeTreeBase.h.

◆ printMatching() [2/3]

void ttk::MergeTreeBase::printMatching ( std::vector< std::tuple< ftm::idNode, ftm::idNode > > &  matchings)
inline

Definition at line 1360 of file MergeTreeBase.h.

◆ printMatching() [3/3]

void ttk::MergeTreeBase::printMatching ( std::vector< std::tuple< ftm::idNode, ftm::idNode, double > > &  matchings)
inline

Definition at line 1349 of file MergeTreeBase.h.

◆ printOutputMatching()

template<class dataType >
void ttk::MergeTreeBase::printOutputMatching ( std::vector< std::tuple< ftm::idNode, ftm::idNode > > &  outputMatching,
ftm::FTMTree_MT tree1,
ftm::FTMTree_MT tree2,
bool  computeCosts = true 
)
inline

Definition at line 1384 of file MergeTreeBase.h.

◆ printPairs()

template<class dataType >
void ttk::MergeTreeBase::printPairs ( std::vector< std::tuple< SimplexId, SimplexId, dataType > > &  treePairs)
inline

Definition at line 1372 of file MergeTreeBase.h.

◆ printTable()

template<class dataType >
void ttk::MergeTreeBase::printTable ( dataType *  table,
int  nRows,
int  nCols 
)
inline

Definition at line 1330 of file MergeTreeBase.h.

◆ printTableVector()

template<class dataType >
void ttk::MergeTreeBase::printTableVector ( std::vector< std::vector< dataType > > &  table)
inline

Definition at line 1307 of file MergeTreeBase.h.

◆ printTreesStats() [1/2]

void ttk::MergeTreeBase::printTreesStats ( std::vector< ftm::FTMTree_MT * > &  trees)
inline

Definition at line 1288 of file MergeTreeBase.h.

◆ printTreesStats() [2/2]

template<class dataType >
void ttk::MergeTreeBase::printTreesStats ( std::vector< ftm::MergeTree< dataType > > &  trees)
inline

Definition at line 1300 of file MergeTreeBase.h.

◆ putBackMergedNodes()

template<class dataType >
void ttk::MergeTreeBase::putBackMergedNodes ( ftm::FTMTree_MT tree)
inline

Definition at line 949 of file MergeTreeBase.h.

◆ relabelCost()

template<class dataType >
dataType ttk::MergeTreeBase::relabelCost ( ftm::FTMTree_MT tree1,
ftm::idNode  nodeId1,
ftm::FTMTree_MT tree2,
ftm::idNode  nodeId2 
)
inline

Definition at line 1178 of file MergeTreeBase.h.

◆ relabelCostOnly()

template<class dataType >
dataType ttk::MergeTreeBase::relabelCostOnly ( ftm::FTMTree_MT tree1,
ftm::idNode  nodeId1,
ftm::FTMTree_MT tree2,
ftm::idNode  nodeId2 
)
inline

Definition at line 1147 of file MergeTreeBase.h.

◆ reverseNodeCorr()

void ttk::MergeTreeBase::reverseNodeCorr ( ftm::FTMTree_MT tree,
std::vector< int > &  nodeCorr 
)
inline

Definition at line 711 of file MergeTreeBase.h.

◆ setAssignmentSolver()

void ttk::MergeTreeBase::setAssignmentSolver ( int  assignmentSolver)
inline

Definition at line 70 of file MergeTreeBase.h.

◆ setBarycenterMergeTree()

void ttk::MergeTreeBase::setBarycenterMergeTree ( bool  imt)
inline

Definition at line 130 of file MergeTreeBase.h.

◆ setBranchDecomposition()

void ttk::MergeTreeBase::setBranchDecomposition ( bool  useBD)
inline

Definition at line 114 of file MergeTreeBase.h.

◆ setCleanTree()

void ttk::MergeTreeBase::setCleanTree ( bool  clean)
inline

Definition at line 146 of file MergeTreeBase.h.

◆ setDeleteMultiPersPairs()

void ttk::MergeTreeBase::setDeleteMultiPersPairs ( bool  deleteMultiPersPairsT)
inline

Definition at line 142 of file MergeTreeBase.h.

◆ setDistanceSquaredRoot()

void ttk::MergeTreeBase::setDistanceSquaredRoot ( bool  distanceSquaredRoot)
inline

Definition at line 134 of file MergeTreeBase.h.

◆ setEpsilon1UseFarthestSaddle()

void ttk::MergeTreeBase::setEpsilon1UseFarthestSaddle ( bool  b)
inline

Definition at line 74 of file MergeTreeBase.h.

◆ setEpsilon2Tree1()

void ttk::MergeTreeBase::setEpsilon2Tree1 ( double  epsilon)
inline

Definition at line 86 of file MergeTreeBase.h.

◆ setEpsilon2Tree2()

void ttk::MergeTreeBase::setEpsilon2Tree2 ( double  epsilon)
inline

Definition at line 90 of file MergeTreeBase.h.

◆ setEpsilon3Tree1()

void ttk::MergeTreeBase::setEpsilon3Tree1 ( double  epsilon)
inline

Definition at line 94 of file MergeTreeBase.h.

◆ setEpsilon3Tree2()

void ttk::MergeTreeBase::setEpsilon3Tree2 ( double  epsilon)
inline

Definition at line 98 of file MergeTreeBase.h.

◆ setEpsilonTree1()

void ttk::MergeTreeBase::setEpsilonTree1 ( double  epsilon)
inline

Definition at line 78 of file MergeTreeBase.h.

◆ setEpsilonTree2()

void ttk::MergeTreeBase::setEpsilonTree2 ( double  epsilon)
inline

Definition at line 82 of file MergeTreeBase.h.

◆ setIsPersistenceDiagram()

void ttk::MergeTreeBase::setIsPersistenceDiagram ( bool  isPD)
inline

Definition at line 150 of file MergeTreeBase.h.

◆ setKeepSubtree()

void ttk::MergeTreeBase::setKeepSubtree ( bool  keepSubtree)
inline

Definition at line 122 of file MergeTreeBase.h.

◆ setNodePerTask()

void ttk::MergeTreeBase::setNodePerTask ( int  npt)
inline

Definition at line 110 of file MergeTreeBase.h.

◆ setNonMatchingWeight()

void ttk::MergeTreeBase::setNonMatchingWeight ( double  weight)
inline

Definition at line 126 of file MergeTreeBase.h.

◆ setNormalizedWasserstein()

void ttk::MergeTreeBase::setNormalizedWasserstein ( bool  normalizedWasserstein)
inline

Definition at line 118 of file MergeTreeBase.h.

◆ setParallelize()

void ttk::MergeTreeBase::setParallelize ( bool  para)
inline

Definition at line 106 of file MergeTreeBase.h.

◆ setParamValueFromName()

void ttk::MergeTreeBase::setParamValueFromName ( std::string &  paramName,
double  value 
)
inline

Definition at line 1245 of file MergeTreeBase.h.

◆ setPersistenceThreshold()

void ttk::MergeTreeBase::setPersistenceThreshold ( double  pt)
inline

Definition at line 102 of file MergeTreeBase.h.

◆ setUseMinMaxPair()

void ttk::MergeTreeBase::setUseMinMaxPair ( bool  useMinMaxPair)
inline

Definition at line 138 of file MergeTreeBase.h.

◆ verifyOrigins()

template<class dataType >
void ttk::MergeTreeBase::verifyOrigins ( ftm::FTMTree_MT tree)
inline

Definition at line 425 of file MergeTreeBase.h.

◆ verifyPairsTree()

void ttk::MergeTreeBase::verifyPairsTree ( ftm::FTMTree_MT tree)
inline

Definition at line 604 of file MergeTreeBase.h.

Member Data Documentation

◆ assignmentSolverID_

int ttk::MergeTreeBase::assignmentSolverID_ = 0
protected

Definition at line 26 of file MergeTreeBase.h.

◆ barycenterMergeTree_

bool ttk::MergeTreeBase::barycenterMergeTree_ = false
protected

Definition at line 35 of file MergeTreeBase.h.

◆ branchDecomposition_

bool ttk::MergeTreeBase::branchDecomposition_ = true
protected

Definition at line 39 of file MergeTreeBase.h.

◆ cleanTree_

bool ttk::MergeTreeBase::cleanTree_ = true
protected

Definition at line 58 of file MergeTreeBase.h.

◆ convertToDiagram_

bool ttk::MergeTreeBase::convertToDiagram_ = false
protected

Definition at line 49 of file MergeTreeBase.h.

◆ deleteMultiPersPairs_

bool ttk::MergeTreeBase::deleteMultiPersPairs_ = false
protected

Definition at line 37 of file MergeTreeBase.h.

◆ distanceSquaredRoot_

bool ttk::MergeTreeBase::distanceSquaredRoot_ = true
protected

Definition at line 45 of file MergeTreeBase.h.

◆ epsilon1UseFarthestSaddle_

bool ttk::MergeTreeBase::epsilon1UseFarthestSaddle_ = false
protected

Definition at line 27 of file MergeTreeBase.h.

◆ epsilon2Tree1_

double ttk::MergeTreeBase::epsilon2Tree1_ = 100
protected

Definition at line 30 of file MergeTreeBase.h.

◆ epsilon2Tree2_

double ttk::MergeTreeBase::epsilon2Tree2_ = 100
protected

Definition at line 31 of file MergeTreeBase.h.

◆ epsilon3Tree1_

double ttk::MergeTreeBase::epsilon3Tree1_ = 100
protected

Definition at line 32 of file MergeTreeBase.h.

◆ epsilon3Tree2_

double ttk::MergeTreeBase::epsilon3Tree2_ = 100
protected

Definition at line 33 of file MergeTreeBase.h.

◆ epsilonTree1_

double ttk::MergeTreeBase::epsilonTree1_ = 0
protected

Definition at line 28 of file MergeTreeBase.h.

◆ epsilonTree2_

double ttk::MergeTreeBase::epsilonTree2_ = 0
protected

Definition at line 29 of file MergeTreeBase.h.

◆ isPersistenceDiagram_

bool ttk::MergeTreeBase::isPersistenceDiagram_ = false
protected

Definition at line 48 of file MergeTreeBase.h.

◆ keepSubtree_

bool ttk::MergeTreeBase::keepSubtree_ = false
protected

Definition at line 42 of file MergeTreeBase.h.

◆ mixtureCoefficient_

double ttk::MergeTreeBase::mixtureCoefficient_ = 0.5
protected

Definition at line 52 of file MergeTreeBase.h.

◆ nodePerTask_

int ttk::MergeTreeBase::nodePerTask_ = 32
protected

Definition at line 57 of file MergeTreeBase.h.

◆ nonMatchingWeight_

double ttk::MergeTreeBase::nonMatchingWeight_ = 1.0
protected

Definition at line 43 of file MergeTreeBase.h.

◆ normalizedWasserstein_

bool ttk::MergeTreeBase::normalizedWasserstein_ = true
protected

Definition at line 41 of file MergeTreeBase.h.

◆ parallelize_

bool ttk::MergeTreeBase::parallelize_ = true
protected

Definition at line 56 of file MergeTreeBase.h.

◆ persistenceThreshold_

double ttk::MergeTreeBase::persistenceThreshold_ = 0
protected

Definition at line 34 of file MergeTreeBase.h.

◆ treesNodeCorr_

std::vector<std::vector<int> > ttk::MergeTreeBase::treesNodeCorr_
protected

Definition at line 61 of file MergeTreeBase.h.

◆ useDoubleInput_

bool ttk::MergeTreeBase::useDoubleInput_ = false
protected

Definition at line 53 of file MergeTreeBase.h.

◆ useFullMerge_

bool ttk::MergeTreeBase::useFullMerge_ = false
protected

Definition at line 46 of file MergeTreeBase.h.

◆ useMinMaxPair_

bool ttk::MergeTreeBase::useMinMaxPair_ = true
protected

Definition at line 36 of file MergeTreeBase.h.

◆ wassersteinPower_

int ttk::MergeTreeBase::wassersteinPower_ = 2
protected

Definition at line 40 of file MergeTreeBase.h.


The documentation for this class was generated from the following file: