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, wait
getBasisComparator
public 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)
AbstractMultifilteredStream
getFiltrationValue
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
basisElement
- the basis element to get the filtration multi-index forpublic final T[] getBoundary(T basisElement)
AbstractMultifilteredStream
getBoundary
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
basisElement
- the element to get the boundary ofpublic int[] getBoundaryCoefficients(T basisElement)
AbstractMultifilteredStream
getBoundaryCoefficients
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
basisElement
- the element to get the boundary coefficients ofpublic int getDimension(T basisElement)
AbstractMultifilteredStream
getDimension
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
basisElement
- the element to get the dimension ofpublic void finalizeStream()
AbstractMultifilteredStream
finalizeStream
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
public boolean isFinalized()
AbstractMultifilteredStream
isFinalized
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
public int getSize()
AbstractMultifilteredStream
getSize
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
public <G> PersistenceInvariantDescriptor<Interval<java.lang.Double>,G> transform(PersistenceInvariantDescriptor<Interval<java.lang.Integer>,G> barcodeCollection)
AbstractMultifilteredStream
transform
in interface AbstractMultifilteredStream<T extends PrimitiveBasisElement>
barcodeCollection
- the set of filtration index barcodes