edu.stanford.math.plex4.streams.impl
public class ExplicitSimplexStream extends ExplicitStream<Simplex>
storageStructure
Constructor and Description |
---|
ExplicitSimplexStream()
This constructor initializes the class with the default simplex comparator.
|
ExplicitSimplexStream(java.util.Comparator<Simplex> comparator)
This constructor initializes the class with the given simplex
comparator.
|
ExplicitSimplexStream(java.util.Comparator<Simplex> comparator,
double maxFiltrationValue) |
ExplicitSimplexStream(double maxFiltrationValue) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(int[] vertices)
This function adds a simplex with the provided vertices.
|
void |
addElement(int[] vertices,
double filtrationValue)
This function adds a simplex with the provided vertices and
given filtration index.
|
void |
addVertex(int index)
This function adds a new vertex to the complex with a filtration index
of 0.
|
void |
addVertex(int index,
double filtrationValue)
This function adds a new vertex to the complex with specified
filtration index.
|
boolean |
removeElementIfPresent(int[] vertices) |
addAllElements, addElement, constructComplex, containsElement, ensureAllFaces, getFiltrationValue, removeElementIfPresent, transform
finalizeStream, getBasisComparator, getBoundary, getBoundaryCoefficients, getDimension, getFiltrationIndex, getMaximumFiltrationIndex, getMinimumFiltrationIndex, getSize, isFinalized, iterator, validate, validateVerbose
public ExplicitSimplexStream(java.util.Comparator<Simplex> comparator)
comparator
- the Comparator to initialize withpublic ExplicitSimplexStream(java.util.Comparator<Simplex> comparator, double maxFiltrationValue)
public ExplicitSimplexStream()
public ExplicitSimplexStream(double maxFiltrationValue)
public void addVertex(int index)
index
- the index of the vertexpublic void addVertex(int index, double filtrationValue)
index
- the index of the vertex to addfiltrationIndex
- the filtration indexpublic void addElement(int[] vertices)
vertices
- the vertices of the simplex to addpublic void addElement(int[] vertices, double filtrationValue)
vertices
- the vertices of the simplex to addfiltrationIndex
- the filtration indexpublic boolean removeElementIfPresent(int[] vertices)