edu.stanford.math.plex4.streams.multi
public abstract class PrimitiveMultifilteredStream<T extends PrimitiveBasisElement> extends java.lang.Object implements AbstractMultifilteredStream<T>
| Constructor and Description |
|---|
PrimitiveMultifilteredStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(T basisElement,
double[] filtrationValue) |
void |
finalizeStream()
This function prepares the stream for use by a consumer, such as the
PersistentHomology class.
|
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.
|
java.util.Iterator<T> |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBasisComparatorpublic void addElement(T basisElement, double[] filtrationValue)
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T extends PrimitiveBasisElement>public double[] getFiltrationValue(T basisElement)
AbstractMultifilteredStreamgetFiltrationValue in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>basisElement - the basis element to get the filtration multi-index forpublic final T[] getBoundary(T basisElement)
AbstractMultifilteredStreamgetBoundary in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>basisElement - the element to get the boundary ofpublic int[] getBoundaryCoefficients(T basisElement)
AbstractMultifilteredStreamgetBoundaryCoefficients in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>basisElement - the element to get the boundary coefficients ofpublic int getDimension(T basisElement)
AbstractMultifilteredStreamgetDimension in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>basisElement - the element to get the dimension ofpublic void finalizeStream()
AbstractMultifilteredStreamfinalizeStream in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>public boolean isFinalized()
AbstractMultifilteredStreamisFinalized in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>public int getSize()
AbstractMultifilteredStreamgetSize in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>public <G> PersistenceInvariantDescriptor<Interval<java.lang.Double>,G> transform(PersistenceInvariantDescriptor<Interval<java.lang.Integer>,G> barcodeCollection)
AbstractMultifilteredStreamtransform in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>barcodeCollection - the set of filtration index barcodes