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

#include <PersistenceDiagramAuctionActor.h>

Inheritance diagram for ttk::Good:
ttk::PersistenceDiagramAuctionActor

Public Member Functions

 Good ()=default
 
 Good (const Good &)=default
 
 Good (double x, double y, bool is_diagonal, int id)
 
 Good (const PersistencePair &pair, const int id, const double lambda)
 
 Good (const PersistencePair &pair, const int id)
 
void setPrice (const double price)
 
double getPrice () const
 
void assign (const int b, const double price)
 
int getOwner () const
 
void setOwner (const int idx)
 
Goodoperator= (const Good &)=default
 
- 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
 

Protected Attributes

double price_ {0}
 
int owner_ {-1}
 
- Protected Attributes inherited from ttk::PersistenceDiagramAuctionActor
bool is_diagonal_ {false}
 
std::array< double, 3 > geom_pair_length_ {}
 

Additional Inherited Members

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

Detailed Description

Definition at line 108 of file PersistenceDiagramAuctionActor.h.

Constructor & Destructor Documentation

◆ Good() [1/5]

ttk::Good::Good ( )
default

◆ Good() [2/5]

ttk::Good::Good ( const Good )
default

◆ Good() [3/5]

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

Definition at line 112 of file PersistenceDiagramAuctionActor.h.

◆ Good() [4/5]

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

Definition at line 121 of file PersistenceDiagramAuctionActor.h.

◆ Good() [5/5]

ttk::Good::Good ( const PersistencePair pair,
const int  id 
)
inline

Definition at line 158 of file PersistenceDiagramAuctionActor.h.

Member Function Documentation

◆ assign()

void ttk::Good::assign ( const int  b,
const double  price 
)
inline

Definition at line 172 of file PersistenceDiagramAuctionActor.h.

◆ getOwner()

int ttk::Good::getOwner ( ) const
inline

Definition at line 177 of file PersistenceDiagramAuctionActor.h.

◆ getPrice()

double ttk::Good::getPrice ( ) const
inline

Definition at line 168 of file PersistenceDiagramAuctionActor.h.

◆ operator=()

Good & ttk::Good::operator= ( const Good )
default

◆ setOwner()

void ttk::Good::setOwner ( const int  idx)
inline

Definition at line 181 of file PersistenceDiagramAuctionActor.h.

◆ setPrice()

void ttk::Good::setPrice ( const double  price)
inline

Definition at line 164 of file PersistenceDiagramAuctionActor.h.

Member Data Documentation

◆ owner_

int ttk::Good::owner_ {-1}
protected

Definition at line 191 of file PersistenceDiagramAuctionActor.h.

◆ price_

double ttk::Good::price_ {0}
protected

Definition at line 188 of file PersistenceDiagramAuctionActor.h.


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