TTK
|
#include <PersistenceDiagramAuction.h>
Public Types | |
using | KDT = Bidder::KDT |
Public Member Functions | |
int | getAugmentedNumberOfBidders () |
void | initLowerBoundCostWeight (double delta_lim) |
double | initLowerBoundCost (const int kdt_index=0) |
PersistenceDiagramAuction (int wasserstein, double geometricalFactor, double lambda, double delta_lim, bool use_kdTree, double nonMatchingWeight=1.0) | |
PersistenceDiagramAuction (BidderDiagram &bidders, GoodDiagram &goods, int wasserstein, double geometricalFactor, double lambda, double delta_lim, KDT &kdt, std::vector< KDT * > &correspondence_kdt_map, double epsilon={}, double initial_diag_price={}, bool use_kdTree=true, double nonMatchingWeight=1.0) | |
void | runAuctionRound (int &n_biddings, const int kdt_index=0) |
double | getMatchingsAndDistance (std::vector< MatchingType > &matchings, bool get_diagonal_matches=false) |
double | run (std::vector< MatchingType > &matchings, const int kdt_index=0) |
double | run () |
double | getMaximalPrice () |
void | BuildAuctionDiagrams (const BidderDiagram &BD, const GoodDiagram &GD) |
void | BuildAuctionDiagrams (const DiagramType &diagram1, const DiagramType &diagram2) |
void | setBidders (const DiagramType &diagram1) |
void | setGoods (const DiagramType &diagram2) |
void | buildKDTree () |
void | setEpsilon (const double epsilon) |
void | initializeEpsilon () |
void | buildUnassignedBidders () |
void | reinitializeGoods () |
double | getMatchingDistance () |
double | getRelativePrecision () |
void | updateDiagonalPrices () |
double | getMinimalDiagonalPrice () |
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) |
Public Attributes | |
KDT | default_kdt_ {} |
KDT & | kdt_ {default_kdt_} |
std::vector< KDT * > | default_correspondence_kdt_map_ {} |
std::vector< KDT * > & | correspondence_kdt_map_ |
Protected Attributes | |
int | wasserstein_ {2} |
BidderDiagram | default_bidders_ {} |
BidderDiagram & | bidders_ {default_bidders_} |
GoodDiagram | default_goods_ {} |
GoodDiagram & | goods_ {default_goods_} |
GoodDiagram | diagonal_goods_ |
std::priority_queue< std::pair< int, double >, std::vector< std::pair< int, double > >, Compare > | diagonal_queue_ {} |
std::queue< int > | unassignedBidders_ {} |
int | n_bidders_ {0} |
int | n_goods_ {0} |
double | epsilon_ {1} |
double | geometricalFactor_ {} |
double | lambda_ {} |
double | delta_lim_ {} |
double | lowerBoundCost_ |
double | lowerBoundCostWeight_ |
bool | use_kdt_ {true} |
double | nonMatchingWeight_ = 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_ |
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 |
Definition at line 8 of file PersistenceDiagramAuction.h.
Definition at line 15 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 29 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 40 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 101 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 133 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 183 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 226 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 11 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 243 of file PersistenceDiagramAuction.h.
double ttk::PersistenceDiagramAuction::getMatchingsAndDistance | ( | std::vector< MatchingType > & | matchings, |
bool | get_diagonal_matches = false |
||
) |
Definition at line 73 of file PersistenceDiagramAuction.cpp.
double ttk::PersistenceDiagramAuction::getMaximalPrice | ( | ) |
Definition at line 52 of file PersistenceDiagramAuction.cpp.
|
inline |
Definition at line 273 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 253 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 209 of file PersistenceDiagramAuction.h.
double ttk::PersistenceDiagramAuction::initLowerBoundCost | ( | const int | kdt_index = 0 | ) |
Definition at line 114 of file PersistenceDiagramAuction.cpp.
|
inline |
Definition at line 23 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 234 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 95 of file PersistenceDiagramAuction.h.
double ttk::PersistenceDiagramAuction::run | ( | std::vector< MatchingType > & | matchings, |
const int | kdt_index = 0 |
||
) |
Definition at line 155 of file PersistenceDiagramAuction.cpp.
void ttk::PersistenceDiagramAuction::runAuctionRound | ( | int & | n_biddings, |
const int | kdt_index = 0 |
||
) |
Definition at line 3 of file PersistenceDiagramAuction.cpp.
|
inline |
Definition at line 164 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 205 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 174 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 266 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 290 of file PersistenceDiagramAuction.h.
std::vector<KDT *>& ttk::PersistenceDiagramAuction::correspondence_kdt_map_ |
Definition at line 20 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 289 of file PersistenceDiagramAuction.h.
std::vector<KDT *> ttk::PersistenceDiagramAuction::default_correspondence_kdt_map_ {} |
Definition at line 19 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 291 of file PersistenceDiagramAuction.h.
KDT ttk::PersistenceDiagramAuction::default_kdt_ {} |
Definition at line 17 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 311 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 293 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 297 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 303 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 304 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 292 of file PersistenceDiagramAuction.h.
KDT& ttk::PersistenceDiagramAuction::kdt_ {default_kdt_} |
Definition at line 18 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 310 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 312 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 312 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 300 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 301 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 314 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 298 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 313 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 288 of file PersistenceDiagramAuction.h.