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

#include <BottleneckDistance.h>

Inheritance diagram for ttk::BottleneckDistance:
ttk::Debug ttk::BaseClass ttkBottleneckDistance

Public Member Functions

 BottleneckDistance ()
 
int execute (const ttk::DiagramType &diag0, const ttk::DiagramType &diag1, std::vector< MatchingType > &matchings)
 
void setPersistencePercentThreshold (const double t)
 
void setPX (const double px)
 
void setPY (const double py)
 
void setPZ (const double pz)
 
void setPE (const double pe)
 
void setPS (const double ps)
 
void setAlgorithm (const std::string &algorithm)
 
void setPVAlgorithm (const int algorithm)
 
void setWasserstein (const std::string &wasserstein)
 
double getDistance ()
 
- 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

double distance_ {-1.0}
 
std::array< double, 3 > costs_ {}
 
std::string WassersteinMetric {"2"}
 
std::string DistanceAlgorithm {}
 
int PVAlgorithm {-1}
 
double Tolerance {1.0}
 
double PX {0.0}
 
double PY {0.0}
 
double PZ {0.0}
 
double PE {1.0}
 
double PS {1.0}
 
- 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

Author
Maxime Soler soler.nosp@m..max.nosp@m.ime@t.nosp@m.otal.nosp@m..com

Definition at line 15 of file BottleneckDistance.h.

Constructor & Destructor Documentation

◆ BottleneckDistance()

ttk::BottleneckDistance::BottleneckDistance ( )

Definition at line 6 of file BottleneckDistance.cpp.

Member Function Documentation

◆ execute()

int ttk::BottleneckDistance::execute ( const ttk::DiagramType diag0,
const ttk::DiagramType diag1,
std::vector< MatchingType > &  matchings 
)

Definition at line 10 of file BottleneckDistance.cpp.

◆ getDistance()

double ttk::BottleneckDistance::getDistance ( )
inline

Definition at line 51 of file BottleneckDistance.h.

◆ setAlgorithm()

void ttk::BottleneckDistance::setAlgorithm ( const std::string &  algorithm)
inline

Definition at line 41 of file BottleneckDistance.h.

◆ setPE()

void ttk::BottleneckDistance::setPE ( const double  pe)
inline

Definition at line 35 of file BottleneckDistance.h.

◆ setPersistencePercentThreshold()

void ttk::BottleneckDistance::setPersistencePercentThreshold ( const double  t)
inline

Definition at line 23 of file BottleneckDistance.h.

◆ setPS()

void ttk::BottleneckDistance::setPS ( const double  ps)
inline

Definition at line 38 of file BottleneckDistance.h.

◆ setPVAlgorithm()

void ttk::BottleneckDistance::setPVAlgorithm ( const int  algorithm)
inline

Definition at line 44 of file BottleneckDistance.h.

◆ setPX()

void ttk::BottleneckDistance::setPX ( const double  px)
inline

Definition at line 26 of file BottleneckDistance.h.

◆ setPY()

void ttk::BottleneckDistance::setPY ( const double  py)
inline

Definition at line 29 of file BottleneckDistance.h.

◆ setPZ()

void ttk::BottleneckDistance::setPZ ( const double  pz)
inline

Definition at line 32 of file BottleneckDistance.h.

◆ setWasserstein()

void ttk::BottleneckDistance::setWasserstein ( const std::string &  wasserstein)
inline

Definition at line 47 of file BottleneckDistance.h.

Member Data Documentation

◆ costs_

std::array<double, 3> ttk::BottleneckDistance::costs_ {}
protected

Definition at line 57 of file BottleneckDistance.h.

◆ distance_

double ttk::BottleneckDistance::distance_ {-1.0}
protected

Definition at line 56 of file BottleneckDistance.h.

◆ DistanceAlgorithm

std::string ttk::BottleneckDistance::DistanceAlgorithm {}
protected

Definition at line 60 of file BottleneckDistance.h.

◆ PE

double ttk::BottleneckDistance::PE {1.0}
protected

Definition at line 66 of file BottleneckDistance.h.

◆ PS

double ttk::BottleneckDistance::PS {1.0}
protected

Definition at line 67 of file BottleneckDistance.h.

◆ PVAlgorithm

int ttk::BottleneckDistance::PVAlgorithm {-1}
protected

Definition at line 61 of file BottleneckDistance.h.

◆ PX

double ttk::BottleneckDistance::PX {0.0}
protected

Definition at line 63 of file BottleneckDistance.h.

◆ PY

double ttk::BottleneckDistance::PY {0.0}
protected

Definition at line 64 of file BottleneckDistance.h.

◆ PZ

double ttk::BottleneckDistance::PZ {0.0}
protected

Definition at line 65 of file BottleneckDistance.h.

◆ Tolerance

double ttk::BottleneckDistance::Tolerance {1.0}
protected

Definition at line 62 of file BottleneckDistance.h.

◆ WassersteinMetric

std::string ttk::BottleneckDistance::WassersteinMetric {"2"}
protected

Definition at line 59 of file BottleneckDistance.h.


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