TTK
|
#include <PersistenceDiagramDistanceMatrix.h>
Public Member Functions | |
PersistenceDiagramDistanceMatrix () | |
std::vector< std::vector< double > > | execute (const std::vector< DiagramType > &intermediateDiagrams, const std::array< size_t, 2 > &nInputs) const |
void | setWasserstein (const int data) |
void | setDos (const bool min, const bool sad, const bool max) |
void | setAlpha (const double alpha) |
void | setLambda (const double lambda) |
void | setDeltaLim (const double deltaLim) |
void | setMaxNumberOfPairs (const size_t data) |
void | setMinPersistence (const double data) |
void | setConstraint (const int data) |
![]() | |
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) |
![]() | |
BaseClass () | |
virtual | ~BaseClass ()=default |
int | getThreadNumber () const |
virtual int | setThreadNumber (const int threadNumber) |
Protected Types | |
enum class | ConstraintType { FULL_DIAGRAMS , NUMBER_PAIRS , ABSOLUTE_PERSISTENCE , RELATIVE_PERSISTENCE_PER_DIAG , RELATIVE_PERSISTENCE_GLOBAL } |
Protected Member Functions | |
double | getMostPersistent (const std::vector< BidderDiagram > &bidder_diags) const |
double | computePowerDistance (const BidderDiagram &D1, const BidderDiagram &D2) const |
void | getDiagramsDistMat (const std::array< size_t, 2 > &nInputs, std::vector< std::vector< double > > &distanceMatrix, const std::vector< BidderDiagram > &diags_min, const std::vector< BidderDiagram > &diags_sad, const std::vector< BidderDiagram > &diags_max) const |
void | setBidderDiagrams (const size_t nInputs, std::vector< DiagramType > &inputDiagrams, std::vector< BidderDiagram > &bidder_diags) const |
void | enrichCurrentBidderDiagrams (const std::vector< BidderDiagram > &bidder_diags, std::vector< BidderDiagram > ¤t_bidder_diags, const std::vector< double > &maxDiagPersistence) const |
![]() | |
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) |
Protected Attributes | |
int | Wasserstein {2} |
double | Alpha {1.0} |
double | DeltaLim {0.01} |
double | Lambda |
size_t | MaxNumberOfPairs {20} |
double | MinPersistence {0.1} |
bool | do_min_ {true} |
bool | do_sad_ {true} |
bool | do_max_ {true} |
ConstraintType | Constraint {ConstraintType::RELATIVE_PERSISTENCE_GLOBAL} |
![]() | |
int | debugLevel_ |
std::string | debugMsgPrefix_ |
std::string | debugMsgNamePrefix_ |
![]() | |
bool | lastObject_ |
int | threadNumber_ |
Wrapper * | wrapper_ |
Additional Inherited Members | |
![]() | |
static COMMON_EXPORTS debug::LineMode | lastLineMode = ttk::debug::LineMode::NEW |
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 30 of file PersistenceDiagramDistanceMatrix.h.
|
strongprotected |
Enumerator | |
---|---|
FULL_DIAGRAMS | |
NUMBER_PAIRS | |
ABSOLUTE_PERSISTENCE | |
RELATIVE_PERSISTENCE_PER_DIAG | |
RELATIVE_PERSISTENCE_GLOBAL |
Definition at line 110 of file PersistenceDiagramDistanceMatrix.h.
|
inline |
Definition at line 33 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 154 of file PersistenceDiagramDistanceMatrix.cpp.
|
protected |
Definition at line 261 of file PersistenceDiagramDistanceMatrix.cpp.
std::vector< std::vector< double > > PersistenceDiagramDistanceMatrix::execute | ( | const std::vector< DiagramType > & | intermediateDiagrams, |
const std::array< size_t, 2 > & | nInputs | ||
) | const |
Definition at line 8 of file PersistenceDiagramDistanceMatrix.cpp.
|
protected |
Definition at line 172 of file PersistenceDiagramDistanceMatrix.cpp.
|
protected |
Definition at line 137 of file PersistenceDiagramDistanceMatrix.cpp.
|
inline |
Definition at line 49 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 237 of file PersistenceDiagramDistanceMatrix.cpp.
|
inline |
Definition at line 64 of file PersistenceDiagramDistanceMatrix.h.
|
inline |
Definition at line 55 of file PersistenceDiagramDistanceMatrix.h.
|
inline |
Definition at line 44 of file PersistenceDiagramDistanceMatrix.h.
|
inline |
Definition at line 52 of file PersistenceDiagramDistanceMatrix.h.
|
inline |
Definition at line 58 of file PersistenceDiagramDistanceMatrix.h.
|
inline |
Definition at line 61 of file PersistenceDiagramDistanceMatrix.h.
|
inline |
Definition at line 41 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 98 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 117 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 99 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 108 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 108 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 108 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 105 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 106 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 107 of file PersistenceDiagramDistanceMatrix.h.
|
protected |
Definition at line 97 of file PersistenceDiagramDistanceMatrix.h.