edu.stanford.math.plex4.interop
public class Plex3Stream extends java.lang.Object implements AbstractFilteredStream<Simplex>
| Constructor and Description |
|---|
Plex3Stream(SimplexStream plex3Stream) |
Plex3Stream(SimplexStream plex3Stream,
int[] vertexMapping) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsElement(Simplex basisElement)
This function returns whether an element is contained in the stream.
|
void |
finalizeStream()
This function prepares the stream for use by a consumer, such as the
PersistentHomology class.
|
java.util.Comparator<Simplex> |
getBasisComparator()
This function returns a comparator on the underlying basis type.
|
Simplex[] |
getBoundary(Simplex basisElement)
This function returns the elements in the boundary of the supplied
basisElement, without the coefficients.
|
int[] |
getBoundaryCoefficients(Simplex basisElement)
This function returns the coefficients of the boundary of the supplied
basis element.
|
int |
getDimension(Simplex basisElement)
This function returns the dimension of a basis element within
the chain complex.
|
int |
getFiltrationIndex(Simplex basisElement)
This function returns the filtration index of the requested basis element.
|
double |
getFiltrationValue(Simplex basisElement) |
int |
getMaximumFiltrationIndex()
This function gets the maximum filtration index in the complex.
|
int |
getMinimumFiltrationIndex()
This function gets the minimum filtration index in the complex.
|
int |
getSize()
This function returns the total number of elements in the stream.
|
boolean |
isFinalized()
This function checks whether the finalize() function has been called.
|
java.util.Iterator<Simplex> |
iterator() |
<G> PersistenceInvariantDescriptor<Interval<java.lang.Double>,G> |
transform(PersistenceInvariantDescriptor<Interval<java.lang.Integer>,G> barcodeCollection)
This function transforms the given collection of filtration index barcodes into filtration value barcodes.
|
public Plex3Stream(SimplexStream plex3Stream)
public Plex3Stream(SimplexStream plex3Stream, int[] vertexMapping)
public void finalizeStream()
AbstractFilteredStreamfinalizeStream in interface AbstractFilteredStream<Simplex>public Simplex[] getBoundary(Simplex basisElement)
AbstractFilteredStreamgetBoundary in interface AbstractFilteredStream<Simplex>basisElement - the element to get the boundary ofpublic int[] getBoundaryCoefficients(Simplex basisElement)
AbstractFilteredStreamgetBoundaryCoefficients in interface AbstractFilteredStream<Simplex>basisElement - the element to get the boundary coefficients ofpublic int getDimension(Simplex basisElement)
AbstractFilteredStreamgetDimension in interface AbstractFilteredStream<Simplex>basisElement - the element to get the dimension ofpublic int getFiltrationIndex(Simplex basisElement)
AbstractFilteredStreamgetFiltrationIndex in interface AbstractFilteredStream<Simplex>basisElement - the basis element to get the filtration index forpublic double getFiltrationValue(Simplex basisElement)
getFiltrationValue in interface AbstractFilteredStream<Simplex>public boolean containsElement(Simplex basisElement)
AbstractFilteredStreamcontainsElement in interface AbstractFilteredStream<Simplex>basisElement - the basis element to be testedpublic int getMaximumFiltrationIndex()
AbstractFilteredStreamgetMaximumFiltrationIndex in interface AbstractFilteredStream<Simplex>public int getMinimumFiltrationIndex()
AbstractFilteredStreamgetMinimumFiltrationIndex in interface AbstractFilteredStream<Simplex>public int getSize()
AbstractFilteredStreamgetSize in interface AbstractFilteredStream<Simplex>public boolean isFinalized()
AbstractFilteredStreamisFinalized in interface AbstractFilteredStream<Simplex>public java.util.Iterator<Simplex> iterator()
iterator in interface java.lang.Iterable<Simplex>public java.util.Comparator<Simplex> getBasisComparator()
AbstractFilteredStreamgetBasisComparator in interface AbstractFilteredStream<Simplex>public <G> PersistenceInvariantDescriptor<Interval<java.lang.Double>,G> transform(PersistenceInvariantDescriptor<Interval<java.lang.Integer>,G> barcodeCollection)
AbstractFilteredStreamtransform in interface AbstractFilteredStream<Simplex>barcodeCollection - the set of filtration index barcodes