edu.stanford.math.plex4.homology.zigzag
public class SimpleHomologyBasisTracker<U extends PrimitiveBasisElement> extends java.lang.Object implements AbstractHomologyTracker<java.lang.Integer,java.lang.Integer,U,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>>
Modifier and Type | Field and Description |
---|---|
protected java.util.Comparator<U> |
basisComparator
This comparator defines the ordering on the basis elements.
|
protected IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
cachedTracker |
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> |
indexedComparator
This comparator provides the dictionary ordering on filtration value - basis element
pairs.
|
protected int |
maxDimension |
protected int |
minDimension |
protected gnu.trove.TObjectIntHashMap<U> |
objectIndexMap |
Constructor and Description |
---|
SimpleHomologyBasisTracker(edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field,
java.util.Comparator<U> basisComparator,
int minDimension,
int maxDimension) |
Modifier and Type | Method and Description |
---|---|
void |
add(U sigma,
java.lang.Integer index) |
AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getAnnotatedBarcodes() |
BarcodeCollection<java.lang.Integer> |
getBarcodes() |
AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getFiniteAnnotatedBarcodes() |
BarcodeCollection<java.lang.Integer> |
getFiniteBarcodes() |
AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getInfiniteAnnotatedBarcodes() |
BarcodeCollection<java.lang.Integer> |
getInfiniteBarcodes() |
IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getIntervalTracker() |
IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getState() |
IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getStateWithoutFiniteBarcodes(int startOverride) |
boolean |
isBoundary(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> generator) |
void |
remove(U sigma,
java.lang.Integer index) |
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 final java.util.Comparator<U extends PrimitiveBasisElement> indexedComparator
protected IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>> cachedTracker
protected final gnu.trove.TObjectIntHashMap<U extends PrimitiveBasisElement> objectIndexMap
protected final int minDimension
protected final int maxDimension
public SimpleHomologyBasisTracker(edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field, java.util.Comparator<U> basisComparator, int minDimension, int maxDimension)
public void add(U sigma, java.lang.Integer index)
add
in interface AbstractHomologyTracker<java.lang.Integer,java.lang.Integer,U extends PrimitiveBasisElement,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>>
public IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> getState()
getState
in interface AbstractHomologyTracker<java.lang.Integer,java.lang.Integer,U extends PrimitiveBasisElement,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>>
public IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> getStateWithoutFiniteBarcodes(int startOverride)
public boolean isBoundary(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> generator)
isBoundary
in interface AbstractHomologyTracker<java.lang.Integer,java.lang.Integer,U extends PrimitiveBasisElement,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>>
public void remove(U sigma, java.lang.Integer index)
remove
in interface AbstractHomologyTracker<java.lang.Integer,java.lang.Integer,U extends PrimitiveBasisElement,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>>
public IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> getIntervalTracker()
public AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> getFiniteAnnotatedBarcodes()
public AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> getInfiniteAnnotatedBarcodes()
public AnnotatedBarcodeCollection<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> getAnnotatedBarcodes()
public BarcodeCollection<java.lang.Integer> getFiniteBarcodes()
public BarcodeCollection<java.lang.Integer> getInfiniteBarcodes()
public BarcodeCollection<java.lang.Integer> getBarcodes()