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) | |
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) | |
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) |
virtual int | setWrapper (const Wrapper *wrapper) |
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} |
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 38 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 97 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 129 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 179 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 222 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 11 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 239 of file PersistenceDiagramAuction.h.
double ttk::PersistenceDiagramAuction::getMatchingsAndDistance | ( | std::vector< MatchingType > & | matchings, |
bool | get_diagonal_matches = false |
||
) |
Definition at line 71 of file PersistenceDiagramAuction.cpp.
double ttk::PersistenceDiagramAuction::getMaximalPrice | ( | ) |
Definition at line 50 of file PersistenceDiagramAuction.cpp.
|
inline |
Definition at line 268 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 248 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 205 of file PersistenceDiagramAuction.h.
double ttk::PersistenceDiagramAuction::initLowerBoundCost | ( | const int | kdt_index = 0 | ) |
Definition at line 111 of file PersistenceDiagramAuction.cpp.
|
inline |
Definition at line 23 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 230 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 91 of file PersistenceDiagramAuction.h.
double ttk::PersistenceDiagramAuction::run | ( | std::vector< MatchingType > & | matchings, |
const int | kdt_index = 0 |
||
) |
Definition at line 150 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 160 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 201 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 170 of file PersistenceDiagramAuction.h.
|
inline |
Definition at line 261 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 285 of file PersistenceDiagramAuction.h.
std::vector<KDT *>& ttk::PersistenceDiagramAuction::correspondence_kdt_map_ |
Definition at line 20 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 284 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 286 of file PersistenceDiagramAuction.h.
KDT ttk::PersistenceDiagramAuction::default_kdt_ {} |
Definition at line 17 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 306 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 288 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 292 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 298 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 299 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 287 of file PersistenceDiagramAuction.h.
KDT& ttk::PersistenceDiagramAuction::kdt_ {default_kdt_} |
Definition at line 18 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 300 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 307 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 307 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 295 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 296 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 293 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 308 of file PersistenceDiagramAuction.h.
|
protected |
Definition at line 283 of file PersistenceDiagramAuction.h.