TTK
Loading...
Searching...
No Matches
ttk::rpd::PairCellsWithOracle Class Reference

TTK base class that partially executes on a Rips complex the PairCells persistence algorithm where needed, when the persistence pairs are already known. More...

#include <PairCellsWithOracle.h>

Inheritance diagram for ttk::rpd::PairCellsWithOracle:
ttk::Debug ttk::BaseClass

Public Member Functions

 PairCellsWithOracle (const PointCloud &points, MultidimensionalDiagram const &oracle, bool distanceMatrix=false, bool parallelSort=false)
 
 PairCellsWithOracle (float *data, int n, int dim, MultidimensionalDiagram const &oracle, bool parallelSort=false)
 
void run ()
 
void getGenerators (std::vector< Generator1 > &generators) const
 
void getCascades (std::vector< Cascade > &cascades, EdgeSets3 &critical) const
 
void getCascades (EdgeSets4 &critical) 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)
 

Static Public Member Functions

static void callOracle (const PointCloud &points, MultidimensionalDiagram &oracle, double threshold=inf, bool distanceMatrix=false)
 

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)
 
- 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_
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

TTK base class that partially executes on a Rips complex the PairCells persistence algorithm where needed, when the persistence pairs are already known.

Author
Mattéo Clémot matte.nosp@m.o.cl.nosp@m.emot@.nosp@m.univ.nosp@m.-lyon.nosp@m.1.fr
Date
February 2025.

This module defines the PairCellsWithOracle class that takes a point cloud and enables to compute the persistent generators and the persistent cascades of its Rips complex, when the persistence pairs have already been computed

Definition at line 23 of file PairCellsWithOracle.h.

Constructor & Destructor Documentation

◆ PairCellsWithOracle() [1/2]

ttk::rpd::PairCellsWithOracle::PairCellsWithOracle ( const PointCloud & points,
MultidimensionalDiagram const & oracle,
bool distanceMatrix = false,
bool parallelSort = false )

Definition at line 6 of file PairCellsWithOracle.cpp.

◆ PairCellsWithOracle() [2/2]

ttk::rpd::PairCellsWithOracle::PairCellsWithOracle ( float * data,
int n,
int dim,
MultidimensionalDiagram const & oracle,
bool parallelSort = false )

Definition at line 32 of file PairCellsWithOracle.cpp.

Member Function Documentation

◆ callOracle()

void ttk::rpd::PairCellsWithOracle::callOracle ( const PointCloud & points,
MultidimensionalDiagram & oracle,
double threshold = inf,
bool distanceMatrix = false )
static

Definition at line 53 of file PairCellsWithOracle.cpp.

◆ getCascades() [1/2]

void ttk::rpd::PairCellsWithOracle::getCascades ( EdgeSets4 & critical) const

Definition at line 187 of file PairCellsWithOracle.cpp.

◆ getCascades() [2/2]

void ttk::rpd::PairCellsWithOracle::getCascades ( std::vector< Cascade > & cascades,
EdgeSets3 & critical ) const

Definition at line 175 of file PairCellsWithOracle.cpp.

◆ getGenerators()

void ttk::rpd::PairCellsWithOracle::getGenerators ( std::vector< Generator1 > & generators) const

Definition at line 163 of file PairCellsWithOracle.cpp.

◆ run()

void ttk::rpd::PairCellsWithOracle::run ( )

Definition at line 73 of file PairCellsWithOracle.cpp.


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