TTK
Loading...
Searching...
No Matches
ttk::PersistenceDiagramDictionaryDecoding Class Reference

TTK processing package for the computation of a Dictionary of Persistence Diagrams and barycentric weights to approximate an ensemble of Persistence Diagrams. More...

#include <PersistenceDiagramDictionaryDecoding.h>

Inheritance diagram for ttk::PersistenceDiagramDictionaryDecoding:
ttk::Debug ttk::BaseClass ttkPersistenceDiagramDictionaryDecoding

Public Types

enum class  BACKEND { MDS = 0 , DICTIONARY = 1 }
 

Public Member Functions

 PersistenceDiagramDictionaryDecoding ()
 
void execute (std::vector< DiagramType > &dictDiagrams, std::vector< std::vector< double > > &vectorWeights, std::vector< DiagramType > &Barycenters) const
 
- 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)
 

Protected Member Functions

void computeAtomsCoordinates (std::vector< ttk::DiagramType > &atoms, const std::vector< std::vector< double > > &vectorWeights, std::vector< std::array< double, 3 > > &coords, std::vector< std::array< double, 3 > > &trueCoords, std::vector< double > &xVector, std::vector< double > &yVector, std::vector< double > &zVector, const double spacing, const size_t nAtoms) const
 
- 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)
 

Protected Attributes

BACKEND ProjMet {BACKEND::MDS}
 
bool ProgBarycenter {false}
 
- Protected Attributes inherited from ttk::Debug
int debugLevel_
 
std::string debugMsgPrefix_
 
std::string debugMsgNamePrefix_
 
- Protected Attributes inherited from ttk::BaseClass
bool lastObject_
 
int threadNumber_
 
Wrapperwrapper_
 

Additional Inherited Members

- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

TTK processing package for the computation of a Dictionary of Persistence Diagrams and barycentric weights to approximate an ensemble of Persistence Diagrams.

Author
Keanu Sisouk keanu.nosp@m..sis.nosp@m.ouk@l.nosp@m.ip6..nosp@m.fr
Pierre Guillou pierr.nosp@m.e.gu.nosp@m.illou.nosp@m.@lip.nosp@m.6.fr
Date
May 2023

Related publication
"Wasserstein Dictionaries of Persistence Diagrams"
Keanu Sisouk, Julie Delon and Julien Tierny
IEEE Transactions on Visualization and Computer Graphics, 2024.

See also
PersistenceDiagramDictionary

Online examples:

Definition at line 39 of file PersistenceDiagramDictionaryDecoding.h.

Member Enumeration Documentation

◆ BACKEND

Enumerator
MDS 
DICTIONARY 

Definition at line 42 of file PersistenceDiagramDictionaryDecoding.h.

Constructor & Destructor Documentation

◆ PersistenceDiagramDictionaryDecoding()

ttk::PersistenceDiagramDictionaryDecoding::PersistenceDiagramDictionaryDecoding ( )
inline

Definition at line 44 of file PersistenceDiagramDictionaryDecoding.h.

Member Function Documentation

◆ computeAtomsCoordinates()

void ttk::PersistenceDiagramDictionaryDecoding::computeAtomsCoordinates ( std::vector< ttk::DiagramType > & atoms,
const std::vector< std::vector< double > > & vectorWeights,
std::vector< std::array< double, 3 > > & coords,
std::vector< std::array< double, 3 > > & trueCoords,
std::vector< double > & xVector,
std::vector< double > & yVector,
std::vector< double > & zVector,
const double spacing,
const size_t nAtoms ) const
protected

Definition at line 28 of file PersistenceDiagramDictionaryDecoding.cpp.

◆ execute()

void ttk::PersistenceDiagramDictionaryDecoding::execute ( std::vector< DiagramType > & dictDiagrams,
std::vector< std::vector< double > > & vectorWeights,
std::vector< DiagramType > & Barycenters ) const

Definition at line 6 of file PersistenceDiagramDictionaryDecoding.cpp.

Member Data Documentation

◆ ProgBarycenter

bool ttk::PersistenceDiagramDictionaryDecoding::ProgBarycenter {false}
protected

Definition at line 54 of file PersistenceDiagramDictionaryDecoding.h.

◆ ProjMet

BACKEND ttk::PersistenceDiagramDictionaryDecoding::ProjMet {BACKEND::MDS}
protected

Definition at line 53 of file PersistenceDiagramDictionaryDecoding.h.


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