edu.stanford.math.plex4.homology.zigzag
U
- public class HomologyBasisTracker<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.Map<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<java.lang.Integer>> |
B |
protected java.util.Comparator<U> |
basisComparator |
protected java.util.Set<U> |
basisElements |
protected java.util.Map<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
C |
protected edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<U> |
chainModule
These objects performs the chain computations.
|
static boolean |
checkConsistency |
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 |
protected edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<java.lang.Integer> |
integerChainModule |
protected java.util.Comparator<java.lang.Integer> |
integerComparator |
protected gnu.trove.TIntIntHashMap |
internalExternalIndexMap |
protected int |
internalIndex |
protected IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
intervalTracker |
protected gnu.trove.TObjectIntHashMap<U> |
objectIndexMap |
protected java.util.Map<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
Z |
Constructor and Description |
---|
HomologyBasisTracker(edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field,
java.util.Comparator<U> basisComparator)
This constructor initializes the object with a field and a comparator on the basis type.
|
Modifier and Type | Method and Description |
---|---|
void |
add(U sigma) |
void |
add(U sigma,
int externalIndex) |
void |
add(U sigma,
java.lang.Integer index) |
void |
checkInvariant() |
protected <X,Y> void |
checkReduced(java.util.Map<X,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<Y>> map,
java.util.Comparator<Y> comparator) |
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() |
AbstractPersistenceTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getState() |
AbstractPersistenceTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> |
getStateWithoutFiniteBarcodes() |
boolean |
isBoundary(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> cycle) |
protected boolean |
isCycle(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> chain) |
static void |
log(java.lang.String... args) |
void |
remove(U sigma) |
void |
remove(U sigma,
int externalIndex) |
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 edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule<java.lang.Integer> integerChainModule
protected final java.util.Comparator<U extends PrimitiveBasisElement> basisComparator
protected final java.util.Comparator<java.lang.Integer> integerComparator
protected final java.util.Comparator<U extends PrimitiveBasisElement> indexedComparator
protected final java.util.Map<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>> Z
protected final java.util.Map<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<java.lang.Integer>> B
protected final java.util.Map<java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>> C
protected final gnu.trove.TIntIntHashMap internalExternalIndexMap
protected final gnu.trove.TObjectIntHashMap<U extends PrimitiveBasisElement> objectIndexMap
protected final java.util.Set<U extends PrimitiveBasisElement> basisElements
protected int internalIndex
protected final IntervalTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U extends PrimitiveBasisElement>> intervalTracker
public static boolean checkConsistency
public HomologyBasisTracker(edu.stanford.math.primitivelib.autogen.algebraic.IntAbstractField field, java.util.Comparator<U> basisComparator)
field
- a field structure on the type intbasisComparator
- a comparator on the basis type Upublic static void log(java.lang.String... args)
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()
public void add(U sigma)
public void add(U sigma, int externalIndex)
public void remove(U sigma)
public void remove(U sigma, int externalIndex)
public void checkInvariant()
protected <X,Y> void checkReduced(java.util.Map<X,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<Y>> map, java.util.Comparator<Y> comparator)
protected boolean isCycle(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> chain)
public boolean isBoundary(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> cycle)
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 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 AbstractPersistenceTracker<java.lang.Integer,java.lang.Integer,edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U>> getStateWithoutFiniteBarcodes()
public AbstractPersistenceTracker<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 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>>