edu.stanford.math.plex
public class LazyWitnessStream extends SimplexStream
A LazyWitnessStream is a SimplexStream whose elements are the simplices of the lazy Witness complex of a PointData instance. The implementation is very similar to the RipsStream, and in fact the results are analogous for nu=0. The details of this construction are described in Topological estimation using witness complexes, Vin de Silva and Gunnar Carlsson, Symposium on Point-Based Graphics, ETH, Zurich, Switzerland, June 2-4, 2004.
RipsStream
,
WitnessStream
SimplexStream.ComparisonType, SimplexStream.Head, SimplexStream.Stack, SimplexStream.Tail
Modifier and Type | Field and Description |
---|---|
protected double[] |
finite_eij_array |
double |
granularity |
int[] |
landmarks |
int |
maxDimension |
protected double |
maxR |
int |
nu |
PointData |
pdata |
protected SimplexStream.Stack |
stack |
Modifier | Constructor and Description |
---|---|
protected |
LazyWitnessStream() |
Modifier and Type | Method and Description |
---|---|
double |
convert_filtration_index(int fi)
Convert a filtration index into a persistence parameter (i.e., double) --
gets overloaded by some subclasses.
|
protected SimplexStream.Stack |
find_simplices(double delta,
double R_max,
int nu,
int max_dimension,
int[] landmarks,
PointData data) |
boolean |
hasNext()
Is there a next Simplex in the stream?
|
java.util.Iterator<Simplex> |
iterator()
Make an iterator for the stream.
|
int |
maxDimension()
Max dimension of simplices in the stream.
|
Simplex |
next()
Next Simplex in the stream.
|
int |
size()
How many simplices are in the stream?
|
convertInterval, convertInterval, remove, verify
public final PointData pdata
public final double granularity
public final int maxDimension
public final int[] landmarks
public final int nu
protected double maxR
protected double[] finite_eij_array
protected SimplexStream.Stack stack
public boolean hasNext()
hasNext
in interface java.util.Iterator<Simplex>
hasNext
in class SimplexStream
public Simplex next()
next
in interface java.util.Iterator<Simplex>
next
in class SimplexStream
public int size()
size
in class SimplexStream
public int maxDimension()
maxDimension
in class SimplexStream
public double convert_filtration_index(int fi)
convert_filtration_index
in class SimplexStream
fi
- Filtration index to convert.public java.util.Iterator<Simplex> iterator()
Iterator
protected SimplexStream.Stack find_simplices(double delta, double R_max, int nu, int max_dimension, int[] landmarks, PointData data)