|
TTK
|
TTK processing package for the computation of Wasserstein barycenters and K-Means clusterings of a set of persistence diagrams. More...
#include <PersistenceDiagramClustering.h>
Public Member Functions | |
| PersistenceDiagramClustering () | |
| ~PersistenceDiagramClustering () override=default | |
| std::vector< int > | execute (std::vector< DiagramType > &intermediateDiagrams, std::vector< DiagramType > ¢roids, std::vector< std::vector< std::vector< MatchingType > > > &all_matchings) |
| std::array< double, 3 > | getDistances () const |
| void | setTimeLimit (double timeLimit) |
| void | setForceUseOfAlgorithm (bool forceUseOfAlgorithm) |
| void | setDeltaLim (double DeltaLimNew) |
| void | setUseAdditionalPrecision (bool Precision) |
| void | setUseProgressive (bool UseProgressive_) |
| void | setUseInterruptible (bool UseInterruptible_) |
| void | setDeterministic (bool Deterministic_) |
| void | setAlpha (double Alpha_) |
| void | setUseAccelerated (bool UseAccelerated_) |
| void | setUseKmeansppInit (bool UseKmeansppInit_) |
| void | setUseCustomWeights (bool data) |
| void | setCustomWeights (std::vector< double > *pdata) |
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 | |
| std::array< double, 3 > | distances {} |
| int | DistanceWritingOptions {0} |
| int | PairTypeClustering {-1} |
| bool | Deterministic {true} |
| int | WassersteinMetric {2} |
| bool | UseProgressive {true} |
| bool | ForceUseOfAlgorithm {false} |
| bool | UseInterruptible {true} |
| double | Alpha {1.0} |
| bool | UseAdditionalPrecision {false} |
| double | DeltaLim {0.01} |
| double | Lambda {1.0} |
| double | TimeLimit {999999} |
| double | NonMatchingWeight = 1.0 |
| int | NumberOfClusters {1} |
| bool | UseAccelerated {false} |
| bool | UseKmeansppInit {false} |
| int | points_added_ |
| int | points_deleted_ |
| std::vector< double > * | CustomWeights {} |
| bool | UseCustomWeights {false} |
Protected Attributes inherited from ttk::Debug | |
| int | debugLevel_ |
| std::string | debugMsgPrefix_ |
| std::string | debugMsgNamePrefix_ |
Protected Attributes inherited from ttk::BaseClass | |
| bool | lastObject_ |
| int | threadNumber_ |
| Wrapper * | wrapper_ |
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 |
TTK processing package for the computation of Wasserstein barycenters and K-Means clusterings of a set of persistence diagrams.
Related publication
"Progressive Wasserstein Barycenters of Persistence Diagrams"
Jules Vidal, Joseph Budin and Julien Tierny
Proc. of IEEE VIS 2019.
IEEE Transactions on Visualization and Computer Graphics, 2019.
Online examples:
Definition at line 41 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 44 of file PersistenceDiagramClustering.h.
|
overridedefault |
| std::vector< int > ttk::PersistenceDiagramClustering::execute | ( | std::vector< DiagramType > & | intermediateDiagrams, |
| std::vector< DiagramType > & | centroids, | ||
| std::vector< std::vector< std::vector< MatchingType > > > & | all_matchings ) |
Reconstruct matchings
Definition at line 55 of file PersistenceDiagramClustering.cpp.
|
inline |
Definition at line 55 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 87 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 102 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 67 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 83 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 63 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 59 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 91 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 71 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 99 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 79 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 95 of file PersistenceDiagramClustering.h.
|
inline |
Definition at line 75 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 122 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 136 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 124 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 115 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 111 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 113 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 120 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 125 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 127 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 129 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 114 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 133 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 134 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 126 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 130 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 123 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 137 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 121 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 131 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 118 of file PersistenceDiagramClustering.h.
|
protected |
Definition at line 116 of file PersistenceDiagramClustering.h.