edu.stanford.math.plex4.autogen.homology
public abstract class ObjectPersistenceAlgorithm<F,U> extends AbstractPersistenceBasisAlgorithm<U,edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,U>>
F 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.ObjectAlgebraicFreeModule<F,U> |
chainModule
This objects performs the chain computations.
|
protected edu.stanford.math.primitivelib.autogen.algebraic.ObjectAbstractField<F> |
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 |
---|
ObjectPersistenceAlgorithm(edu.stanford.math.primitivelib.autogen.algebraic.ObjectAbstractField<F> 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 |
---|---|
AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,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.ObjectSparseFormalSum<F,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.ObjectAlgebraicFreeModule<F,U> |
getChainModule()
This function returns the free module used for the arithmetic computations.
|
edu.stanford.math.primitivelib.autogen.algebraic.ObjectAbstractField<F> |
getField()
This function returns the field over which the homology is computed.
|
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.ObjectSparseFormalSum<F,U> chain)
This function computes the operation low_A(j) as described in the paper.
|
computeAnnotatedIntervals
computeIntervals
protected final edu.stanford.math.primitivelib.autogen.algebraic.ObjectAbstractField<F> field
protected final edu.stanford.math.primitivelib.autogen.formal_sum.ObjectAlgebraicFreeModule<F,U> chainModule
protected final java.util.Comparator<U> basisComparator
protected java.util.Comparator<U> filteredComparator
protected int minDimension
protected int maxDimension
public ObjectPersistenceAlgorithm(edu.stanford.math.primitivelib.autogen.algebraic.ObjectAbstractField<F> field, java.util.Comparator<U> basisComparator, int minDimension, int maxDimension)
field
- a field structure on the type FbasisComparator
- 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.ObjectAlgebraicFreeModule<F,U> getChainModule()
public edu.stanford.math.primitivelib.autogen.algebraic.ObjectAbstractField<F> getField()
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.ObjectSparseFormalSum<F,U>> computeAnnotatedIndexIntervals(AbstractFilteredStream<U> stream)
AbstractPersistenceBasisAlgorithm
computeAnnotatedIndexIntervals
in class AbstractPersistenceBasisAlgorithm<U,edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,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.ObjectSparseFormalSum<F,U>> computeAnnotatedIntervalsImpl(AbstractFilteredStream<U> stream)
stream
- the filtered chain complexprotected U low(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,U> chain)
chain
- the chain to search