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

TTK base class that executes the PairCells persistence algorithm on a Rips complex. More...

#include <PairCells.h>

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

Public Member Functions

 PairCells (const PointCloud &points, bool distanceMatrix=false, double upperBound=inf, bool parallelSort=false, bool parallelMatrixConstruction=false)
 
 PairCells (float *data, int n, int dim, double upperBound=inf, bool parallelSort=false, bool parallelMatrixConstruction=false)
 
void run ()
 
void getDiagram (MultidimensionalDiagram &diagrams) const
 
void getDiagramAndGenerators (MultidimensionalDiagram &diagrams, std::vector< Generator1 > &generators) const
 
void getCascades (std::vector< Cascade > &cascades, EdgeSets3 &critical) const
 
void getCascades (EdgeSets4 &critical) const
 
void enrichCascades (std::set< Edge > &cascadeSet, EdgeSets4 &critical, std::vector< int > const &globalIndices) 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)
 

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 executes the PairCells persistence algorithm on a Rips complex.

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

This module defines the PairCells class that takes a point cloud and enables to compute the persistence diagram, the persistent generators and the persistent cascades of its Rips complex.

Definition at line 26 of file PairCells.h.

Constructor & Destructor Documentation

◆ PairCells() [1/2]

PairCells::PairCells ( const PointCloud & points,
bool distanceMatrix = false,
double upperBound = inf,
bool parallelSort = false,
bool parallelMatrixConstruction = false )

Definition at line 25 of file PairCells.cpp.

◆ PairCells() [2/2]

PairCells::PairCells ( float * data,
int n,
int dim,
double upperBound = inf,
bool parallelSort = false,
bool parallelMatrixConstruction = false )

Definition at line 52 of file PairCells.cpp.

Member Function Documentation

◆ enrichCascades()

void PairCells::enrichCascades ( std::set< Edge > & cascadeSet,
EdgeSets4 & critical,
std::vector< int > const & globalIndices ) const

Definition at line 361 of file PairCells.cpp.

◆ getCascades() [1/2]

void PairCells::getCascades ( EdgeSets4 & critical) const

Definition at line 343 of file PairCells.cpp.

◆ getCascades() [2/2]

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

Definition at line 325 of file PairCells.cpp.

◆ getDiagram()

void PairCells::getDiagram ( MultidimensionalDiagram & diagrams) const

Definition at line 271 of file PairCells.cpp.

◆ getDiagramAndGenerators()

void PairCells::getDiagramAndGenerators ( MultidimensionalDiagram & diagrams,
std::vector< Generator1 > & generators ) const

Definition at line 294 of file PairCells.cpp.

◆ run()

void PairCells::run ( )

Definition at line 74 of file PairCells.cpp.


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