TTK processing package for the computation of a Dictionary of Persistence Diagrams and barycentric weights to approximate an ensemble of Persistence Diagrams.
More...
|
| virtual const char * | GetClassName () |
| |
| virtual int | IsA (const char *type) |
| |
| void | SetWassersteinMetric (const std::string &data) |
| |
| std::string | GetWassersteinMetric () |
| |
| virtual void | SetPercent_ (double) |
| |
| virtual double | GetPercent_ () |
| |
| virtual void | SetOptimizeWeights_ (int) |
| |
| virtual int | GetOptimizeWeights_ () |
| |
| virtual void | SetOptimizeAtoms_ (int) |
| |
| virtual int | GetOptimizeAtoms_ () |
| |
| virtual void | SetMaxEigenValue_ (int) |
| |
| virtual int | GetMaxEigenValue_ () |
| |
| virtual void | SetProgBarycenter_ (int) |
| |
| virtual int | GetProgBarycenter_ () |
| |
| virtual void | SetMaxEpoch_ (int) |
| |
| virtual int | GetMaxEpoch_ () |
| |
| virtual void | SetProgApproach_ (int) |
| |
| virtual int | GetProgApproach_ () |
| |
| virtual void | SetStopCondition_ (int) |
| |
| virtual int | GetStopCondition_ () |
| |
| virtual void | SetCompressionMode_ (int) |
| |
| virtual int | GetCompressionMode_ () |
| |
| virtual void | SetDimReductMode_ (int) |
| |
| virtual int | GetDimReductMode_ () |
| |
| virtual void | SetCreationFeatures_ (int) |
| |
| virtual int | GetCreationFeatures_ () |
| |
| virtual void | SetAtomNumber_ (int) |
| |
| virtual int | GetAtomNumber_ () |
| |
| virtual void | SetSeed_ (int) |
| |
| virtual int | GetSeed_ () |
| |
| virtual void | SetBackEnd (int _arg) |
| |
| virtual void | SetBackEnd (BACKEND) |
| |
| virtual BACKEND | GetBackEnd () const |
| |
| virtual void | SetCompressionFactor_ (double) |
| |
| virtual double | GetCompressionFactor_ () |
| |
| void | SetPairType (const int data) |
| |
| int | GetPairType () |
| |
| void | UpdateThreadNumber () |
| |
| void | SetThreadNumber (int threadNumber) |
| |
| void | SetUseAllCores (bool useAllCores) |
| |
| void | SetDebugLevel (int debugLevel) |
| |
| void | SetCompactTriangulationCacheSize (float cacheSize) |
| |
| vtkDataArray * | GetOptionalArray (const bool &enforceArrayIndex, const int &arrayIndex, const std::string &arrayName, vtkDataSet *const inputData, const int &inputPort=0) |
| |
| vtkDataArray * | GetOrderArray (vtkDataSet *const inputData, const int scalarArrayIdx, ttk::Triangulation *triangulation, const bool getGlobalOrder=false, const int orderArrayIdx=0, const bool enforceOrderArrayIdx=false) |
| |
| vtkDataArray * | checkForGlobalAndComputeOrderArray (vtkDataSet *const inputData, vtkDataArray *scalarArray, const int scalarArrayIdx, const bool getGlobalOrder, vtkDataArray *orderArray, ttk::Triangulation *triangulation, const bool enforceOrderArrayIdx) |
| |
| vtkDataArray * | ComputeOrderArray (vtkDataSet *const inputData, vtkDataArray *scalarArray, const int scalarArrayIdx, const bool getGlobalOrder, vtkDataArray *oldOrderArray, ttk::Triangulation *triangulation) |
| |
| ttk::SimplexId * | GetIdentifierArrayPtr (const bool &enforceArrayIndex, const int &arrayIndex, const std::string &arrayName, vtkDataSet *const inputData, std::vector< ttk::SimplexId > &spareStorage, const int inputPort=0, const bool printErr=true) |
| |
| ttk::Triangulation * | GetTriangulation (vtkDataSet *dataSet) |
| |
| int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVectors, vtkInformationVector *outputVector) override |
| |
| vtkDataSet * | GetOutput () |
| |
| vtkDataSet * | GetOutput (int) |
| |
| void | SetInputData (vtkDataSet *) |
| |
| void | SetInputData (int, vtkDataSet *) |
| |
| void | AddInputData (vtkDataSet *) |
| |
| void | AddInputData (int, vtkDataSet *) |
| |
| template<typename inputType> |
| int | checkEmptyMPIInput (inputType *input) |
| | This method tests whether the input is a nullptr. If the computation is being done on multiple processes, it is possible that the domain of one process or more is empty, but not others, therefore in that particular case the rest of the filter will not be computed but an error message will not be sent.
|
| |
| | 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) |
| |
| | BaseClass () |
| |
| virtual | ~BaseClass ()=default |
| |
| int | getThreadNumber () const |
| |
| virtual int | setThreadNumber (const int threadNumber) |
| |
|
| | ttkPersistenceDiagramDictionary () |
| |
| | ~ttkPersistenceDiagramDictionary () override=default |
| |
| int | FillInputPortInformation (int port, vtkInformation *info) override |
| |
| int | FillOutputPortInformation (int port, vtkInformation *info) override |
| |
| int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override |
| |
| | ttkAlgorithm () |
| |
| | ~ttkAlgorithm () override |
| |
| void | MPIGhostPipelinePreconditioning (vtkDataSet *input) |
| |
| void | MPIPipelinePreconditioning (vtkDataSet *input, std::vector< int > &neighbors, std::map< int, int > &neighToId, ttk::Triangulation *triangulation=nullptr) |
| |
| bool | checkGlobalIdValidity (ttk::LongSimplexId *globalIds, ttk::SimplexId simplexNumber, unsigned char *ghost, int *rankArray) |
| |
| int | GenerateGlobalIds (vtkDataSet *input, std::unordered_map< ttk::SimplexId, ttk::SimplexId > &vertGtoL, std::vector< int > &neighborRanks, std::map< int, int > &neighborsToId) |
| |
| void | MPITriangulationPreconditioning (ttk::Triangulation *triangulation, vtkDataSet *input) |
| |
| virtual int | RequestDataObject (vtkInformation *request, vtkInformationVector **inputVectors, vtkInformationVector *outputVector) |
| |
| virtual int | RequestInformation (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector)) |
| |
| virtual int | RequestUpdateTime (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector)) |
| |
| virtual int | RequestUpdateTimeDependentInformation (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector)) |
| |
| virtual int | RequestUpdateExtent (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector)) |
| |
| virtual int | RequestDataNotGenerated (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector)) |
| |
| virtual int | RequestData (vtkInformation *ttkNotUsed(request), vtkInformationVector **ttkNotUsed(inputVectors), vtkInformationVector *ttkNotUsed(outputVector)) |
| |
| int | FillInputPortInformation (int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override |
| |
| int | FillOutputPortInformation (int ttkNotUsed(port), vtkInformation *ttkNotUsed(info)) override |
| |
| 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) |
| |
| double | distVect (const std::vector< double > &vec1, const std::vector< double > &vec2) const |
| |
| double | getMostPersistent (const std::vector< BidderDiagram > &bidder_diags) const |
| |
| double | computeDistance (const BidderDiagram &D1, const BidderDiagram &D2, std::vector< ttk::MatchingType > &matching) const |
| |
| void | computeGradientWeights (std::vector< double > &gradWeights, std::vector< Matrix > &hessianList, const std::vector< ttk::DiagramType > &dictDiagrams, const std::vector< std::vector< ttk::MatchingType > > &matchingsAtoms, const ttk::DiagramType &Barycenter, const ttk::DiagramType &newData, const std::vector< ttk::MatchingType > &matchingsMin, const std::vector< ttk::MatchingType > &matchingsMax, const std::vector< ttk::MatchingType > &matchingsSad, const std::vector< size_t > &indexBaryMin, const std::vector< size_t > &indexBaryMax, const std::vector< size_t > &indexBarySad, const std::vector< size_t > &indexDataMin, const std::vector< size_t > &indexDataMax, const std::vector< size_t > &indexDataSad, const bool doOptimizeAtoms) const |
| |
| void | computeGradientAtoms (std::vector< Matrix > &gradsAtoms, const std::vector< double > &weights, const ttk::DiagramType &Barycenter, const ttk::DiagramType &newData, const std::vector< ttk::MatchingType > &matchingsMin, const std::vector< ttk::MatchingType > &matchingsMax, const std::vector< ttk::MatchingType > &matchingsSad, const std::vector< size_t > &indexBaryMin, const std::vector< size_t > &indexBaryMax, const std::vector< size_t > &indexBarySad, const std::vector< size_t > &indexDataMin, const std::vector< size_t > &indexDataMax, const std::vector< size_t > &indexDataSad, std::vector< int > &checker, std::vector< std::vector< std::array< double, 2 > > > &pairToAddGradList, ttk::DiagramType &infoToAdd, bool doDimReduct) const |
| |
| void | computeDirectionsGradWeight (const std::vector< std::vector< ttk::MatchingType > > &matchingsAtoms, const ttk::DiagramType &Barycenter, const ttk::DiagramType &newData, const std::vector< ttk::MatchingType > &matchingsCritType, const std::vector< size_t > &indexBaryCritType, const std::vector< size_t > &indexDataCritType, std::vector< std::vector< std::array< double, 2 > > > &pairToAddGradList, std::vector< std::array< double, 2 > > &directions, std::vector< std::array< double, 2 > > &data_assigned, std::vector< int > &tracker2, const bool doOptimizeAtoms) const |
| |
| void | computeDirectionsGradAtoms (std::vector< Matrix > &gradsAtoms, const ttk::DiagramType &Barycenter, const std::vector< double > &weights, const ttk::DiagramType &newData, const std::vector< ttk::MatchingType > &matchingsCritType, const std::vector< size_t > &indexBaryCritType, const std::vector< size_t > &indexDataCritType, std::vector< std::vector< std::array< double, 2 > > > &pairToAddGradList, std::vector< std::vector< double > > &directions, std::vector< int > &checker, std::vector< PersistencePair > &infoToAdd, const bool doOptimizeAtoms) const |
| |
| void | setBidderDiagrams (const size_t nInputs, std::vector< ttk::DiagramType > &inputDiagrams, std::vector< BidderDiagram > &bidder_diags) const |
| |
| int | initDictionary (std::vector< ttk::DiagramType > &dictDiagrams, const std::vector< ttk::DiagramType > &datas, const std::vector< ttk::DiagramType > &inputAtoms, const int &nbAtom, bool &do_min_, bool &do_sad_, bool &do_max_, int seed, double &percent) |
| |
| void | gettingBidderDiagrams (const std::vector< ttk::DiagramType > &intermediateDiagrams, std::vector< ttk::DiagramType > &inputDiagramsMin, std::vector< ttk::DiagramType > &inputDiagramsSad, std::vector< ttk::DiagramType > &inputDiagramsMax, std::vector< BidderDiagram > &bidderDiagramsMin, std::vector< BidderDiagram > &bidderDiagramsSad, std::vector< BidderDiagram > &bidderDiagramsMax, std::vector< std::vector< size_t > > &originIndexMin, std::vector< std::vector< size_t > > &originIndexSad, std::vector< std::vector< size_t > > &originIndexMax, bool insertOriginIndexMode) const |
| |
| void | computeAllDistances (std::vector< ttk::DiagramType > &barycentersList, const size_t nDiag, std::vector< ttk::DiagramType > &barycentersListMin, std::vector< ttk::DiagramType > &barycentersListSad, std::vector< ttk::DiagramType > &barycentersListMax, std::vector< BidderDiagram > &bidderBarycentersListMin, std::vector< BidderDiagram > &bidderBarycentersListSad, std::vector< BidderDiagram > &bidderBarycentersListMax, std::vector< std::vector< size_t > > &originIndexBarysMin, std::vector< std::vector< size_t > > &originIndexBarysSad, std::vector< std::vector< size_t > > &originIndexBarysMax, std::vector< BidderDiagram > &bidderDiagramsMin, std::vector< BidderDiagram > &bidderDiagramsMax, std::vector< BidderDiagram > &bidderDiagramsSad, std::vector< std::vector< ttk::MatchingType > > &matchingsDatasMin, std::vector< std::vector< ttk::MatchingType > > &matchingsDatasMax, std::vector< std::vector< ttk::MatchingType > > &matchingsDatasSad, std::vector< double > &allLossesAtEpoch, bool firstDistComputation) const |
| |
| void | controlAtomsSize (const std::vector< ttk::DiagramType > &intermediateDiagrams, std::vector< ttk::DiagramType > &dictDiagrams) const |
| |
| double | getMaxPers (const ttk::DiagramType &data) |
| |
| | PersistenceDiagramDictionary () |
| |
| void | execute (std::vector< ttk::DiagramType > &intermediateDiagrams, const std::vector< ttk::DiagramType > &intermediateAtoms, std::vector< ttk::DiagramType > &dictDiagrams, std::vector< std::vector< double > > &vectorWeights, const int seed, const int numAtom, std::vector< double > &lossTab, std::vector< std::vector< double > > &allLosses, double percent) |
| |
| void | method (const std::vector< ttk::DiagramType > &intermediateDiagrams, std::vector< ttk::DiagramType > &dictDiagrams, std::vector< std::vector< double > > &vectorWeights, const int numAtom, std::vector< double > &lossTab, std::vector< std::vector< double > > &allLosses, std::vector< std::vector< double > > &histoVectorWeights, std::vector< ttk::DiagramType > &histoDictDiagrams, bool preWeightOpt, double percent, bool doCompression) |
| |
| void | setUseDimReduct (bool data) |
| |
| void | setUseProgApproach (bool data) |
| |
| void | setDos (const bool min, const bool sad, const bool max) |
| |
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 40 of file ttkPersistenceDiagramDictionary.h.