edu.stanford.math.plex4.homology.nonautogen
public class PersistentCohomologyPrototype<U> 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 |
---|
PersistentCohomologyPrototype(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.
|
edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<U> |
getChainModule()
This function returns the free module used for the arithmetic computations.
|
edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField |
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.
|
computeIntervals
protected final edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field
protected final edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<U> chainModule
protected final java.util.Comparator<U> basisComparator
protected java.util.Comparator<U> filteredComparator
protected int minDimension
protected int maxDimension
public PersistentCohomologyPrototype(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 edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<U> getChainModule()
public edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField getField()
public BarcodeCollection<java.lang.Integer> computeIndexIntervals(AbstractFilteredStream<U> stream)
AbstractPersistenceAlgorithm
computeIndexIntervals
in class AbstractPersistenceAlgorithm<U>
stream
- the filtered chain complex