edu.stanford.math.plex4.homology.zigzag
public class IntervalTracker<K,I extends java.lang.Comparable<I>,G> extends java.lang.Object implements AbstractPersistenceTracker<K,I,G>
Modifier and Type | Field and Description |
---|---|
protected AnnotatedBarcodeCollection<I,G> |
annotatedBarcodes |
protected int |
maxDimension |
protected java.util.Map<K,IntervalDescriptor<I,G>> |
openIntervals |
protected boolean |
useLeftClosedIntervals |
protected boolean |
useRightClosedIntervals |
Constructor and Description |
---|
IntervalTracker() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsActiveInterval(K key) |
void |
endAllIntervals(I endIndex) |
void |
endInterval(K key,
I endIndex) |
java.util.Map<K,IntervalDescriptor<I,G>> |
getActiveGenerators() |
AnnotatedBarcodeCollection<I,G> |
getAnnotatedBarcodes() |
BarcodeCollection<I> |
getBarcodes() |
AnnotatedBarcodeCollection<I,G> |
getFiniteAnnotatedBarcodes() |
BarcodeCollection<I> |
getFiniteBarcodes() |
AnnotatedBarcodeCollection<I,G> |
getInactiveGenerators() |
AnnotatedBarcodeCollection<I,G> |
getInfiniteAnnotatedBarcodes() |
BarcodeCollection<I> |
getInfiniteBarcodes() |
void |
setMaxDimension(int maxDimension) |
void |
setUseLeftClosedIntervals(boolean value) |
void |
setUseRightClosedIntervals(boolean value) |
void |
startInterval(K key,
I startIndex,
int dimension,
G generator) |
java.lang.String |
toString() |
protected final java.util.Map<K,IntervalDescriptor<I extends java.lang.Comparable<I>,G>> openIntervals
protected final AnnotatedBarcodeCollection<I extends java.lang.Comparable<I>,G> annotatedBarcodes
protected boolean useLeftClosedIntervals
protected boolean useRightClosedIntervals
protected int maxDimension
public java.util.Map<K,IntervalDescriptor<I,G>> getActiveGenerators()
getActiveGenerators
in interface AbstractPersistenceTracker<K,I extends java.lang.Comparable<I>,G>
public AnnotatedBarcodeCollection<I,G> getInactiveGenerators()
getInactiveGenerators
in interface AbstractPersistenceTracker<K,I extends java.lang.Comparable<I>,G>
public void setMaxDimension(int maxDimension)
public void setUseLeftClosedIntervals(boolean value)
public void setUseRightClosedIntervals(boolean value)
public boolean containsActiveInterval(K key)
public void endAllIntervals(I endIndex)
public AnnotatedBarcodeCollection<I,G> getAnnotatedBarcodes()
public AnnotatedBarcodeCollection<I,G> getInfiniteAnnotatedBarcodes()
public AnnotatedBarcodeCollection<I,G> getFiniteAnnotatedBarcodes()
public BarcodeCollection<I> getBarcodes()
public BarcodeCollection<I> getInfiniteBarcodes()
public BarcodeCollection<I> getFiniteBarcodes()
public java.lang.String toString()
toString
in class java.lang.Object