edu.stanford.math.plex4.streams.impl
T
- the base type of the underlying metric spacepublic class FlexibleVietorisRipsStream<T> extends FlagComplexStream
This class implements the Vietoris-Rips filtered simplicial complex. A simplex [v_0, ..., v_k] is in VR(r) if and only if the pairwise distances d(v_i, v_j) are less than r for all 0 <= i, j <= k. Thus a Vietoris-Rips complex is fully defined by its 1-skeleton, in that it is the maximal simplicial complex given such a 1-skeleton. For this reason, we simply derive from the FlagComplexStream abstract class, and implement the pairwise thresholding in order to generate the 1-skeleton.
Modifier and Type | Field and Description |
---|---|
protected double |
maxDistance
The maximum distance allowed between two connected vertices.
|
protected AbstractSearchableMetricSpace<T> |
metricSpace
This is the metric space upon which the stream is built from.
|
converter, indices, maxAllowableDimension, neighborhoodGraph
storageStructure
Constructor and Description |
---|
FlexibleVietorisRipsStream(AbstractSearchableMetricSpace<T> metricSpace,
double maxDistance,
int maxDimension,
FiltrationConverter converter)
Constructor which initializes the complex with a metric space.
|
FlexibleVietorisRipsStream(AbstractSearchableMetricSpace<T> metricSpace,
double maxDistance,
int maxDimension,
FiltrationConverter converter,
int[] indices) |
FlexibleVietorisRipsStream(AbstractSearchableMetricSpace<T> metricSpace,
double maxDistance,
int maxDimension,
FiltrationConverter converter,
StreamStorageStructure<Simplex> storageStructure) |
Modifier and Type | Method and Description |
---|---|
protected UndirectedWeightedListGraph |
constructEdges()
This function implements the construction of the 1-skeleton.
|
addCofaces, constructComplex, getConverter, getFiltrationValue, getNeighborhoodGraph, incrementalExpansion, transform
containsElement, finalizeStream, getBasisComparator, getBoundary, getBoundaryCoefficients, getDimension, getFiltrationIndex, getMaximumFiltrationIndex, getMinimumFiltrationIndex, getSize, isFinalized, iterator, validate, validateVerbose
protected final AbstractSearchableMetricSpace<T> metricSpace
protected final double maxDistance
public FlexibleVietorisRipsStream(AbstractSearchableMetricSpace<T> metricSpace, double maxDistance, int maxDimension, FiltrationConverter converter)
metricSpace
- the metric space to use in the construction of the complexmaxDistance
- the maximum allowable distancemaxDimension
- the maximum dimension of the complexconverter
- the Filtration Converter to be usedpublic FlexibleVietorisRipsStream(AbstractSearchableMetricSpace<T> metricSpace, double maxDistance, int maxDimension, FiltrationConverter converter, StreamStorageStructure<Simplex> storageStructure)
public FlexibleVietorisRipsStream(AbstractSearchableMetricSpace<T> metricSpace, double maxDistance, int maxDimension, FiltrationConverter converter, int[] indices)
protected UndirectedWeightedListGraph constructEdges()
FlagComplexStream
constructEdges
in class FlagComplexStream