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

#include <PersistenceDiagramAuctionActor.h>

Inheritance diagram for ttk::Bidder:
ttk::PersistenceDiagramAuctionActor

Public Types

using KDT = KDTree< double, std::array< double, 5 > >
 

Public Member Functions

 Bidder ()=default
 
 Bidder (const double x, const double y, const bool is_diagonal, const int id)
 
 Bidder (const PersistencePair &pair, const int id, const double lambda)
 
int runBidding (GoodDiagram *goods, Good &diagonalGood, int wasserstein, double epsilon, double geometricalFactor, double nonMatchingWeight)
 
int runKDTBidding (GoodDiagram *goods, Good &diagonalGood, int wasserstein, double epsilon, double geometricalFactor, double nonMatchingWeight, KDT *kdt, const int kdt_index=0)
 
int runDiagonalBidding (GoodDiagram *goods, Good &twinGood, int wasserstein, double epsilon, double geometricalFactor, double nonMatchingWeight, std::priority_queue< std::pair< int, double >, std::vector< std::pair< int, double > >, Compare > &diagonal_queue)
 
int runDiagonalKDTBidding (GoodDiagram *goods, Good &diagonalGood, int wasserstein, double epsilon, double geometricalFactor, double nonMatchingWeight, std::vector< KDT * > &correspondence_kdt_map, std::priority_queue< std::pair< int, double >, std::vector< std::pair< int, double > >, Compare > &diagonal_queue, const int kdt_index=0)
 
const GoodgetProperty () const
 
void setDiagonalPrice (const double price)
 
void setPricePaid (const double price)
 
void setProperty (const Good &g)
 
void resetProperty ()
 
void setPositionInAuction (const int pos)
 
int getPositionInAuction () const
 
- Public Member Functions inherited from ttk::PersistenceDiagramAuctionActor
 PersistenceDiagramAuctionActor ()=default
 
 PersistenceDiagramAuctionActor (double x, double y, bool is_diagonal, int id)
 
void SetCoordinates (const double x, const double y)
 
void SetCriticalCoordinates (const float coords_x, const float coords_y, const float coords_z)
 
void SetCriticalCoordinates (const std::array< float, 3 > coords)
 
std::array< float, 3 > GetCriticalCoordinates () const
 
void GetKDTCoordinates (double geometricalFactor, std::array< double, 5 > &coordinates) const
 
void projectOnDiagonal ()
 
int getId () const
 
double getPersistence () const
 
bool isDiagonal () const
 
double cost (const PersistenceDiagramAuctionActor &g, const int wasserstein, const double geometricalFactor, const double nonMatchingWeight) const
 
double cost (const PersistenceDiagramAuctionActor *g, const int wasserstein, const double geometricalFactor, const double nonMatchingWeight) const
 
double getPairGeometricalLength (const int wasserstein) const
 

Public Attributes

double diagonal_price_ {}
 
- Public Attributes inherited from ttk::PersistenceDiagramAuctionActor
double x_ {}
 
double y_ {}
 
int id_ {}
 
std::array< float, 3 > coords_ {}
 

Protected Attributes

bool is_diagonal_ {}
 
double price_paid_ {}
 
Good property_ {}
 
- Protected Attributes inherited from ttk::PersistenceDiagramAuctionActor
bool is_diagonal_ {false}
 
std::array< double, 3 > geom_pair_length_ {}
 

Detailed Description

Definition at line 196 of file PersistenceDiagramAuctionActor.h.

Member Typedef Documentation

◆ KDT

using ttk::Bidder::KDT = KDTree<double, std::array<double, 5> >

Definition at line 248 of file PersistenceDiagramAuctionActor.h.

Constructor & Destructor Documentation

◆ Bidder() [1/3]

ttk::Bidder::Bidder ( )
default

◆ Bidder() [2/3]

ttk::Bidder::Bidder ( const double  x,
const double  y,
const bool  is_diagonal,
const int  id 
)
inline

Definition at line 201 of file PersistenceDiagramAuctionActor.h.

◆ Bidder() [3/3]

ttk::Bidder::Bidder ( const PersistencePair pair,
const int  id,
const double  lambda 
)
inline

Definition at line 209 of file PersistenceDiagramAuctionActor.h.

Member Function Documentation

◆ getPositionInAuction()

int ttk::Bidder::getPositionInAuction ( ) const
inline

Definition at line 309 of file PersistenceDiagramAuctionActor.h.

◆ getProperty()

const Good & ttk::Bidder::getProperty ( ) const
inline

Definition at line 291 of file PersistenceDiagramAuctionActor.h.

◆ resetProperty()

void ttk::Bidder::resetProperty ( )
inline

Definition at line 303 of file PersistenceDiagramAuctionActor.h.

◆ runBidding()

int ttk::Bidder::runBidding ( GoodDiagram goods,
Good diagonalGood,
int  wasserstein,
double  epsilon,
double  geometricalFactor,
double  nonMatchingWeight 
)

Definition at line 209 of file PersistenceDiagramAuction.cpp.

◆ runDiagonalBidding()

int ttk::Bidder::runDiagonalBidding ( GoodDiagram goods,
Good twinGood,
int  wasserstein,
double  epsilon,
double  geometricalFactor,
double  nonMatchingWeight,
std::priority_queue< std::pair< int, double >, std::vector< std::pair< int, double > >, Compare > &  diagonal_queue 
)

Definition at line 267 of file PersistenceDiagramAuction.cpp.

◆ runDiagonalKDTBidding()

int ttk::Bidder::runDiagonalKDTBidding ( GoodDiagram goods,
Good diagonalGood,
int  wasserstein,
double  epsilon,
double  geometricalFactor,
double  nonMatchingWeight,
std::vector< KDT * > &  correspondence_kdt_map,
std::priority_queue< std::pair< int, double >, std::vector< std::pair< int, double > >, Compare > &  diagonal_queue,
const int  kdt_index = 0 
)

Runs bidding of a diagonal bidder

Definition at line 382 of file PersistenceDiagramAuction.cpp.

◆ runKDTBidding()

int ttk::Bidder::runKDTBidding ( GoodDiagram goods,
Good diagonalGood,
int  wasserstein,
double  epsilon,
double  geometricalFactor,
double  nonMatchingWeight,
KDT kdt,
const int  kdt_index = 0 
)

Runs bidding of a non-diagonal bidder

Definition at line 505 of file PersistenceDiagramAuction.cpp.

◆ setDiagonalPrice()

void ttk::Bidder::setDiagonalPrice ( const double  price)
inline

Definition at line 294 of file PersistenceDiagramAuctionActor.h.

◆ setPositionInAuction()

void ttk::Bidder::setPositionInAuction ( const int  pos)
inline

Definition at line 306 of file PersistenceDiagramAuctionActor.h.

◆ setPricePaid()

void ttk::Bidder::setPricePaid ( const double  price)
inline

Definition at line 297 of file PersistenceDiagramAuctionActor.h.

◆ setProperty()

void ttk::Bidder::setProperty ( const Good g)
inline

Definition at line 300 of file PersistenceDiagramAuctionActor.h.

Member Data Documentation

◆ diagonal_price_

double ttk::Bidder::diagonal_price_ {}

Definition at line 198 of file PersistenceDiagramAuctionActor.h.

◆ is_diagonal_

bool ttk::Bidder::is_diagonal_ {}
protected

Definition at line 314 of file PersistenceDiagramAuctionActor.h.

◆ price_paid_

double ttk::Bidder::price_paid_ {}
protected

Definition at line 315 of file PersistenceDiagramAuctionActor.h.

◆ property_

Good ttk::Bidder::property_ {}
protected

Definition at line 316 of file PersistenceDiagramAuctionActor.h.


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