edu.stanford.math.plex4.streams.multi
public interface AbstractMultifilteredStream<T> extends java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
void |
finalizeStream()
This function prepares the stream for use by a consumer, such as the
PersistentHomology class.
|
java.util.Comparator<T> |
getBasisComparator()
This function returns a comparator on the underlying basis type.
|
T[] |
getBoundary(T basisElement)
This function returns the elements in the boundary of the supplied
basisElement, without the coefficients.
|
int[] |
getBoundaryCoefficients(T basisElement)
This function returns the coefficients of the boundary of the supplied
basis element.
|
int |
getDimension(T basisElement)
This function returns the dimension of a basis element within
the chain complex.
|
double[] |
getFiltrationValue(T basisElement)
This function returns the filtration multi-index of the requested basis element.
|
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.
|
<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.
|
double[] getFiltrationValue(T basisElement)
basisElement
- the basis element to get the filtration multi-index forT[] getBoundary(T basisElement)
basisElement
- the element to get the boundary ofint[] getBoundaryCoefficients(T basisElement)
basisElement
- the element to get the boundary coefficients ofint getDimension(T basisElement)
basisElement
- the element to get the dimension ofvoid finalizeStream()
boolean isFinalized()
int getSize()
java.util.Comparator<T> getBasisComparator()
<G> PersistenceInvariantDescriptor<Interval<java.lang.Double>,G> transform(PersistenceInvariantDescriptor<Interval<java.lang.Integer>,G> barcodeCollection)
G
- barcodeCollection
- the set of filtration index barcodes