edu.stanford.math.plex4.autogen.homology
public abstract class BooleanPersistenceAlgorithm<U> extends AbstractPersistenceBasisAlgorithm<U,edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U>>
boolean the underlying type of the coefficient field
U the underlying basis type
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.BooleanPrimitiveFreeModule<U> |
chainModule
This objects performs the chain 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 |
---|
BooleanPersistenceAlgorithm(java.util.Comparator<U> basisComparator,
int minDimension,
int maxDimension)
This constructor initializes the object with a comparator on the basis type.
|
Modifier and Type | Method and Description |
---|---|
AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U>> |
computeAnnotatedIndexIntervals(AbstractFilteredStream<U> stream)
This function computes the augmented persistence index intervals for a supplied filtered chain complex.
|
protected abstract AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U>> |
computeAnnotatedIntervalsImpl(AbstractFilteredStream<U> stream)
This function provides the implementation of computeAnnotatedIntervals.
|
BarcodeCollection<java.lang.Integer> |
computeIndexIntervals(AbstractFilteredStream<U> stream)
This function computes the persistence index intervals of a filtered chain complex.
|
protected abstract BarcodeCollection<java.lang.Integer> |
computeIntervalsImpl(AbstractFilteredStream<U> stream)
This function provides the implementation of computeIntervals.
|
edu.stanford.math.primitivelib.autogen.formal_sum.BooleanPrimitiveFreeModule<U> |
getChainModule()
This function returns the free module used for the arithmetic computations.
|
protected void |
initializeFilteredComparator(AbstractFilteredStream<U> stream)
This function simply updates the filtered comparator to the one induced by the given filtered stream.
|
protected U |
low(edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U> chain)
This function computes the operation low_A(j) as described in the paper.
|
computeAnnotatedIntervals
computeIntervals
protected final edu.stanford.math.primitivelib.autogen.formal_sum.BooleanPrimitiveFreeModule<U> chainModule
protected final java.util.Comparator<U> basisComparator
protected java.util.Comparator<U> filteredComparator
protected int minDimension
protected int maxDimension
public BooleanPersistenceAlgorithm(java.util.Comparator<U> basisComparator, int minDimension, int maxDimension)
basisComparator
- 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 edu.stanford.math.primitivelib.autogen.formal_sum.BooleanPrimitiveFreeModule<U> getChainModule()
public BarcodeCollection<java.lang.Integer> computeIndexIntervals(AbstractFilteredStream<U> stream)
AbstractPersistenceAlgorithm
computeIndexIntervals
in class AbstractPersistenceAlgorithm<U>
stream
- the filtered chain complexpublic AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U>> computeAnnotatedIndexIntervals(AbstractFilteredStream<U> stream)
AbstractPersistenceBasisAlgorithm
computeAnnotatedIndexIntervals
in class AbstractPersistenceBasisAlgorithm<U,edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U>>
stream
- the filtered chain complexprotected abstract BarcodeCollection<java.lang.Integer> computeIntervalsImpl(AbstractFilteredStream<U> stream)
stream
- the filtered chain complexprotected abstract AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U>> computeAnnotatedIntervalsImpl(AbstractFilteredStream<U> stream)
stream
- the filtered chain complexprotected U low(edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U> chain)
chain
- the chain to search