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 cost (const PersistenceDiagramAuctionActor *g, const int wasserstein, const double geometricalFactor) 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 106 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 110 of file PersistenceDiagramAuctionActor.h.

◆ Good() [4/5]

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

Definition at line 119 of file PersistenceDiagramAuctionActor.h.

◆ Good() [5/5]

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

Definition at line 156 of file PersistenceDiagramAuctionActor.h.

Member Function Documentation

◆ assign()

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

Definition at line 170 of file PersistenceDiagramAuctionActor.h.

◆ getOwner()

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

Definition at line 175 of file PersistenceDiagramAuctionActor.h.

◆ getPrice()

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

Definition at line 166 of file PersistenceDiagramAuctionActor.h.

◆ operator=()

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

◆ setOwner()

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

Definition at line 179 of file PersistenceDiagramAuctionActor.h.

◆ setPrice()

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

Definition at line 162 of file PersistenceDiagramAuctionActor.h.

Member Data Documentation

◆ owner_

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

Definition at line 189 of file PersistenceDiagramAuctionActor.h.

◆ price_

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

Definition at line 186 of file PersistenceDiagramAuctionActor.h.


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