Initializes : an empty( no points ) PersistenceDiagram object and sets the dimension attribute( must be integer ) e.g.:
dia = PersistenceDiagram( 1 )
Initializes PersistenceDiagram of specified dimension from the given sequence seq of Point objects, e.g.:
dia = PersistenceDiagram( 1, [Point(1,2)] )
Adds point p to the persistence diagram.
Dimension of the persistence diagram. Must be an integer. Must be set at initialization.
Iterator over the points in the persistence diagram, e.g.:
for p in dia: print p
| Returns: | The number of points in the diagram. |
|---|
Calculates the bottleneck distance between the two persistence diagrams.
Initializes Point with the given real-valued coordinates and optionally real value data, e.g.:
s = Point( 1, 1.1, 1.11 )
x coordinate of the point
y coordinate of the point
Real value stored in the simplex.
Point objects are iterable, returning two or three elements depending on presence of data, e.g.:
p = Point( 1, 1.1, 1.11 )
for i in p: print p
1
1.1
1.11