edu.stanford.math.plex4.homology.zigzag
public class ZigZagHomology<U extends PrimitiveBasisElement> extends AbstractPersistenceAlgorithm<U>
Modifier and Type | Field and Description |
---|---|
protected java.util.Comparator<U> |
basisComparator
This comparator defines the ordering on the basis elements.
|
protected edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<U> |
chainModule
This objects performs the chain computations.
|
protected edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField |
field
This is the field over which we perform the arithmetic computations.
|
protected java.util.Comparator<U> |
filteredComparator
This comparator provides the dictionary ordering on filtration value - basis element
pairs.
|
protected int |
maxDimension
This stores the maximum dimension for which to compute (co)homology.
|
protected int |
minDimension
This stores the minimum dimension for which to compute (co)homology.
|
Constructor and Description |
---|
ZigZagHomology(edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field,
java.util.Comparator<U> basisComparator,
int minDimension,
int maxDimension)
This constructor initializes the object with a field and a comparator on the basis type.
|
Modifier and Type | Method and Description |
---|---|
BarcodeCollection<java.lang.Integer> |
computeIndexIntervals(AbstractFilteredStream<U> stream)
This function computes the persistence index intervals of a filtered chain complex.
|
protected void |
initializeFilteredComparator(AbstractFilteredStream<U> stream)
This function simply updates the filtered comparator to the one induced by the given filtered stream.
|
computeIntervals
protected final edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field
protected final edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<U extends PrimitiveBasisElement> chainModule
protected final java.util.Comparator<U extends PrimitiveBasisElement> basisComparator
protected java.util.Comparator<U extends PrimitiveBasisElement> filteredComparator
protected int minDimension
protected int maxDimension
public ZigZagHomology(edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field, java.util.Comparator<U> basisComparator, int minDimension, int maxDimension)
field
- a field structure on the type intbasisComparator
- a comparator on the basis type UminDimension
- the minimum dimension to computemaxDimension
- the maximum dimension to computeprotected void initializeFilteredComparator(AbstractFilteredStream<U> stream)
stream
- the AbstractFilteredStream that provides the filtration index informationpublic BarcodeCollection<java.lang.Integer> computeIndexIntervals(AbstractFilteredStream<U> stream)
AbstractPersistenceAlgorithm
computeIndexIntervals
in class AbstractPersistenceAlgorithm<U extends PrimitiveBasisElement>
stream
- the filtered chain complex