gudhi.representations.preprocessing.BirthPersistenceTransform Class Reference

Preprocessing #############################. More...

Public Member Functions

def __init__ (self)
 
def fit (self, X, y=None)
 
def transform (self, X)
 
def __call__ (self, diag)
 

Detailed Description

Preprocessing #############################.

This is a class for the affine transformation (x,y) -> (x,y-x) to be applied on persistence diagrams.

Constructor & Destructor Documentation

◆ __init__()

def gudhi.representations.preprocessing.BirthPersistenceTransform.__init__ (   self)
Constructor for BirthPersistenceTransform class.

Member Function Documentation

◆ __call__()

def gudhi.representations.preprocessing.BirthPersistenceTransform.__call__ (   self,
  diag 
)
Apply BirthPersistenceTransform on a single persistence diagram and outputs the result.

Parameters:
    diag (n x 2 numpy array): input persistence diagram.

Returns:
    n x 2 numpy array: transformed persistence diagram.

◆ fit()

def gudhi.representations.preprocessing.BirthPersistenceTransform.fit (   self,
  X,
  y = None 
)
Fit the BirthPersistenceTransform class on a list of persistence diagrams (this function actually does nothing but is useful when BirthPersistenceTransform is included in a scikit-learn Pipeline).

Parameters:
    X (list of n x 2 numpy array): input persistence diagrams.
    y (n x 1 array): persistence diagram labels (unused).

◆ transform()

def gudhi.representations.preprocessing.BirthPersistenceTransform.transform (   self,
  X 
)
Apply the BirthPersistenceTransform function on the persistence diagrams.

Parameters:
    X (list of n x 2 numpy array): input persistence diagrams.

Returns:
    list of n x 2 numpy array: transformed persistence diagrams.

The documentation for this class was generated from the following file:
GUDHI  Version 3.3.0  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : MIT Generated on Tue Aug 11 2020 11:58:59 for GUDHI by Doxygen 1.8.18