TTK
Loading...
Searching...
No Matches
PersistenceDiagramDictionaryDecoding.h
Go to the documentation of this file.
1
23
24#pragma once
25
26// ttk common includes
27#include <Debug.h>
32
33#include <DimensionReduction.h>
34
35namespace ttk {
36 using Matrice = std::vector<std::vector<double>>;
37 using VectorMatchingTuple = std::vector<MatchingType>;
38
40
41 public:
42 enum class BACKEND { MDS = 0, DICTIONARY = 1 };
43
45 this->setDebugMsgPrefix("PersistenceDiagramDictionaryDecoding");
46 }
47
48 void execute(std::vector<DiagramType> &dictDiagrams,
49 std::vector<std::vector<double>> &vectorWeights,
50 std::vector<DiagramType> &Barycenters) const;
51
52 protected:
54 bool ProgBarycenter{false};
55
57 std::vector<ttk::DiagramType> &atoms,
58 const std::vector<std::vector<double>> &vectorWeights,
59 std::vector<std::array<double, 3>> &coords,
60 std::vector<std::array<double, 3>> &trueCoords,
61 std::vector<double> &xVector,
62 std::vector<double> &yVector,
63 std::vector<double> &zVector,
64 const double spacing,
65 const size_t nAtoms) const;
66
67 }; // PersistenceDiagramDictionaryDecoding class
68
69} // namespace ttk
void setDebugMsgPrefix(const std::string &prefix)
Definition Debug.h:364
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
void execute(std::vector< DiagramType > &dictDiagrams, std::vector< std::vector< double > > &vectorWeights, std::vector< DiagramType > &Barycenters) const
TTK base package defining the standard types.
std::vector< MatchingType > VectorMatchingTuple
std::vector< std::vector< double > > Matrice