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

#include <PersistenceDiagramBarycenter.h>

Inheritance diagram for ttk::PersistenceDiagramBarycenter:
ttk::Debug ttk::BaseClass

Public Member Functions

 PersistenceDiagramBarycenter ()
 
 ~PersistenceDiagramBarycenter () override=default
 
void execute (std::vector< DiagramType > &intermediateDiagrams, DiagramType &barycenter, std::vector< std::vector< std::vector< MatchingType > > > &all_matchings)
 
void setNumberOfInputs (const int numberOfInputs)
 
void setDeterministic (const bool deterministic)
 
void setWasserstein (const std::string &wasserstein)
 
void setUseProgressive (const bool use_progressive)
 
void setAlpha (const double alpha)
 
void setLambda (const double lambda)
 
void setMethod (const int &method)
 
void setReinitPrices (const bool reinit_prices)
 
void setEpsilonDecreases (const bool epsilon_decreases)
 
void setEarlyStoppage (const bool early_stoppage)
 
void setNonMatchingWeight (const double nonMatchingWeight)
 
void setDeltaLim (double deltaLim)
 
- 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

bool deterministic_ {true}
 
int method_
 
int wasserstein_ {2}
 
int numberOfInputs_ {0}
 
bool use_progressive_ {true}
 
double alpha_ {1.0}
 
double lambda_ {1.0}
 
double nonMatchingWeight_ = 1.0
 
double delta_lim_ {0.01}
 
int points_added_
 
int points_deleted_
 
std::vector< std::vector< double > > all_matchings_
 
std::vector< std::vector< double > > all_old_matchings_
 
std::vector< BidderDiagrambidder_diagrams_
 
std::vector< GoodDiagrambarycenter_goods_
 
bool reinit_prices_ {true}
 
bool epsilon_decreases_ {true}
 
bool early_stoppage_
 
- 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
Jules Vidal jules.nosp@m..vid.nosp@m.al@li.nosp@m.p6.f.nosp@m.r
Joseph Budin josep.nosp@m.h.bu.nosp@m.din@p.nosp@m.olyt.nosp@m.echni.nosp@m.que..nosp@m.edu
Date
September 2019

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.

See also
PersistenceDiagramClustering

Definition at line 25 of file PersistenceDiagramBarycenter.h.

Constructor & Destructor Documentation

◆ PersistenceDiagramBarycenter()

ttk::PersistenceDiagramBarycenter::PersistenceDiagramBarycenter ( )
inline

Definition at line 28 of file PersistenceDiagramBarycenter.h.

◆ ~PersistenceDiagramBarycenter()

ttk::PersistenceDiagramBarycenter::~PersistenceDiagramBarycenter ( )
overridedefault

Member Function Documentation

◆ execute()

void ttk::PersistenceDiagramBarycenter::execute ( std::vector< DiagramType > &  intermediateDiagrams,
DiagramType barycenter,
std::vector< std::vector< std::vector< MatchingType > > > &  all_matchings 
)

Definition at line 3 of file PersistenceDiagramBarycenter.cpp.

◆ setAlpha()

void ttk::PersistenceDiagramBarycenter::setAlpha ( const double  alpha)
inline

Definition at line 58 of file PersistenceDiagramBarycenter.h.

◆ setDeltaLim()

void ttk::PersistenceDiagramBarycenter::setDeltaLim ( double  deltaLim)
inline

Definition at line 89 of file PersistenceDiagramBarycenter.h.

◆ setDeterministic()

void ttk::PersistenceDiagramBarycenter::setDeterministic ( const bool  deterministic)
inline

Definition at line 44 of file PersistenceDiagramBarycenter.h.

◆ setEarlyStoppage()

void ttk::PersistenceDiagramBarycenter::setEarlyStoppage ( const bool  early_stoppage)
inline

Definition at line 81 of file PersistenceDiagramBarycenter.h.

◆ setEpsilonDecreases()

void ttk::PersistenceDiagramBarycenter::setEpsilonDecreases ( const bool  epsilon_decreases)
inline

Definition at line 74 of file PersistenceDiagramBarycenter.h.

◆ setLambda()

void ttk::PersistenceDiagramBarycenter::setLambda ( const double  lambda)
inline

Definition at line 62 of file PersistenceDiagramBarycenter.h.

◆ setMethod()

void ttk::PersistenceDiagramBarycenter::setMethod ( const int &  method)
inline

Definition at line 66 of file PersistenceDiagramBarycenter.h.

◆ setNonMatchingWeight()

void ttk::PersistenceDiagramBarycenter::setNonMatchingWeight ( const double  nonMatchingWeight)
inline

Definition at line 85 of file PersistenceDiagramBarycenter.h.

◆ setNumberOfInputs()

void ttk::PersistenceDiagramBarycenter::setNumberOfInputs ( const int  numberOfInputs)
inline

Definition at line 40 of file PersistenceDiagramBarycenter.h.

◆ setReinitPrices()

void ttk::PersistenceDiagramBarycenter::setReinitPrices ( const bool  reinit_prices)
inline

Definition at line 70 of file PersistenceDiagramBarycenter.h.

◆ setUseProgressive()

void ttk::PersistenceDiagramBarycenter::setUseProgressive ( const bool  use_progressive)
inline

Definition at line 52 of file PersistenceDiagramBarycenter.h.

◆ setWasserstein()

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

Definition at line 48 of file PersistenceDiagramBarycenter.h.

Member Data Documentation

◆ all_matchings_

std::vector<std::vector<double> > ttk::PersistenceDiagramBarycenter::all_matchings_
protected

Definition at line 107 of file PersistenceDiagramBarycenter.h.

◆ all_old_matchings_

std::vector<std::vector<double> > ttk::PersistenceDiagramBarycenter::all_old_matchings_
protected

Definition at line 108 of file PersistenceDiagramBarycenter.h.

◆ alpha_

double ttk::PersistenceDiagramBarycenter::alpha_ {1.0}
protected

Definition at line 99 of file PersistenceDiagramBarycenter.h.

◆ barycenter_goods_

std::vector<GoodDiagram> ttk::PersistenceDiagramBarycenter::barycenter_goods_
protected

Definition at line 110 of file PersistenceDiagramBarycenter.h.

◆ bidder_diagrams_

std::vector<BidderDiagram> ttk::PersistenceDiagramBarycenter::bidder_diagrams_
protected

Definition at line 109 of file PersistenceDiagramBarycenter.h.

◆ delta_lim_

double ttk::PersistenceDiagramBarycenter::delta_lim_ {0.01}
protected

Definition at line 102 of file PersistenceDiagramBarycenter.h.

◆ deterministic_

bool ttk::PersistenceDiagramBarycenter::deterministic_ {true}
protected

Definition at line 94 of file PersistenceDiagramBarycenter.h.

◆ early_stoppage_

bool ttk::PersistenceDiagramBarycenter::early_stoppage_
protected

Definition at line 114 of file PersistenceDiagramBarycenter.h.

◆ epsilon_decreases_

bool ttk::PersistenceDiagramBarycenter::epsilon_decreases_ {true}
protected

Definition at line 113 of file PersistenceDiagramBarycenter.h.

◆ lambda_

double ttk::PersistenceDiagramBarycenter::lambda_ {1.0}
protected

Definition at line 100 of file PersistenceDiagramBarycenter.h.

◆ method_

int ttk::PersistenceDiagramBarycenter::method_
protected

Definition at line 95 of file PersistenceDiagramBarycenter.h.

◆ nonMatchingWeight_

double ttk::PersistenceDiagramBarycenter::nonMatchingWeight_ = 1.0
protected

Definition at line 101 of file PersistenceDiagramBarycenter.h.

◆ numberOfInputs_

int ttk::PersistenceDiagramBarycenter::numberOfInputs_ {0}
protected

Definition at line 97 of file PersistenceDiagramBarycenter.h.

◆ points_added_

int ttk::PersistenceDiagramBarycenter::points_added_
protected

Definition at line 104 of file PersistenceDiagramBarycenter.h.

◆ points_deleted_

int ttk::PersistenceDiagramBarycenter::points_deleted_
protected

Definition at line 105 of file PersistenceDiagramBarycenter.h.

◆ reinit_prices_

bool ttk::PersistenceDiagramBarycenter::reinit_prices_ {true}
protected

Definition at line 112 of file PersistenceDiagramBarycenter.h.

◆ use_progressive_

bool ttk::PersistenceDiagramBarycenter::use_progressive_ {true}
protected

Definition at line 98 of file PersistenceDiagramBarycenter.h.

◆ wasserstein_

int ttk::PersistenceDiagramBarycenter::wasserstein_ {2}
protected

Definition at line 96 of file PersistenceDiagramBarycenter.h.


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