TTK
Loading...
Searching...
No Matches
ttk::PersistenceDiagramWarmRestartAuction< T > Class Template Reference

TTK base class that computes the Wasserstein distance between two persistence diagrams. More...

#include <PersistenceDiagramWarmRestartAuction.h>

Inheritance diagram for ttk::PersistenceDiagramWarmRestartAuction< T >:
ttk::Debug ttk::BaseClass

Public Member Functions

 PersistenceDiagramWarmRestartAuction (const std::vector< T > &goodDiagram)
 
void setNewBidder (const std::vector< T > &bidderDiagram)
 
void reinitializeGoodsPrice ()
 
double runAuction (std::vector< MatchingType > &matchings)
 
double runAuction ()
 
void setWasserstein (double wasserstein)
 
void setDelta (double delta)
 
- 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)
 

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)
 
- 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_
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

template<typename T>
class ttk::PersistenceDiagramWarmRestartAuction< T >

TTK base class that computes the Wasserstein distance between two persistence diagrams.

Author
Mattéo Clémot matte.nosp@m.o.cl.nosp@m.emot@.nosp@m.univ.nosp@m.-lyon.nosp@m.1.fr
Date
April 2024.

This module defines the PersistenceDiagramWarmRestartAuction class that computes the Wasserstein distance between two persistence diagrams. It enables to update one of the persistence diagrams (the bidders) while keeping the other one (the goods) without computing its k-d tree again

Definition at line 24 of file PersistenceDiagramWarmRestartAuction.h.

Constructor & Destructor Documentation

◆ PersistenceDiagramWarmRestartAuction()

template<typename T>
ttk::PersistenceDiagramWarmRestartAuction< T >::PersistenceDiagramWarmRestartAuction ( const std::vector< T > & goodDiagram)
inline

Definition at line 28 of file PersistenceDiagramWarmRestartAuction.h.

Member Function Documentation

◆ reinitializeGoodsPrice()

template<typename T>
void ttk::PersistenceDiagramWarmRestartAuction< T >::reinitializeGoodsPrice ( )
inline

Definition at line 57 of file PersistenceDiagramWarmRestartAuction.h.

◆ runAuction() [1/2]

template<typename T>
double ttk::PersistenceDiagramWarmRestartAuction< T >::runAuction ( )
inline

Definition at line 77 of file PersistenceDiagramWarmRestartAuction.h.

◆ runAuction() [2/2]

template<typename T>
double ttk::PersistenceDiagramWarmRestartAuction< T >::runAuction ( std::vector< MatchingType > & matchings)
inline

Definition at line 62 of file PersistenceDiagramWarmRestartAuction.h.

◆ setDelta()

template<typename T>
void ttk::PersistenceDiagramWarmRestartAuction< T >::setDelta ( double delta)
inline

Definition at line 86 of file PersistenceDiagramWarmRestartAuction.h.

◆ setNewBidder()

template<typename T>
void ttk::PersistenceDiagramWarmRestartAuction< T >::setNewBidder ( const std::vector< T > & bidderDiagram)
inline

Definition at line 46 of file PersistenceDiagramWarmRestartAuction.h.

◆ setWasserstein()

template<typename T>
void ttk::PersistenceDiagramWarmRestartAuction< T >::setWasserstein ( double wasserstein)
inline

Definition at line 82 of file PersistenceDiagramWarmRestartAuction.h.


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