edu.stanford.math.plex4.streams.impl
public class WitnessStream<T> extends PrimitiveStream<Simplex>
Modifier and Type | Field and Description |
---|---|
protected FiltrationConverter |
converter
This converts between filtration indices and values
|
protected double[][] |
D |
protected int[] |
indices |
protected int |
L |
protected LandmarkSelector<T> |
landmarkSelector
This is the selection of landmark points
|
protected double[][] |
m |
protected int |
maxAllowableDimension
The maximum allowable dimension of the complex.
|
protected double |
maxDistance
The maximum distance allowed between two connected vertices.
|
protected int |
maxLen |
protected AbstractSearchableMetricSpace<T> |
metricSpace
This is the metric space upon which the stream is built from.
|
protected int |
N |
protected boolean |
plex3Compatible |
protected boolean |
saveAssociatedSimplices |
storageStructure
Constructor and Description |
---|
WitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double maxDistance,
int numDivisions)
Constructor which initializes the complex with a metric space.
|
WitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double maxDistance,
int[] indices) |
Modifier and Type | Method and Description |
---|---|
protected void |
constructComplex()
This abstract function performs the construction of the filtered chain complex.
|
java.util.List<Simplex> |
getAssociatedSimplices(int witness)
This function returns the list of simplices such that they have the given
point as their witness.
|
double |
getFiltrationValue(Simplex simplex) |
void |
setPlex3Compatbility(boolean value) |
<G> PersistenceInvariantDescriptor<Interval<java.lang.Double>,G> |
transform(PersistenceInvariantDescriptor<Interval<java.lang.Integer>,G> barcodeCollection)
This function transforms the given collection of filtration index
barcodes into filtration value barcodes.
|
containsElement, finalizeStream, getBasisComparator, getBoundary, getBoundaryCoefficients, getDimension, getFiltrationIndex, getMaximumFiltrationIndex, getMinimumFiltrationIndex, getSize, isFinalized, iterator, validate, validateVerbose
protected final int maxAllowableDimension
protected FiltrationConverter converter
protected int[] indices
protected final AbstractSearchableMetricSpace<T> metricSpace
protected final LandmarkSelector<T> landmarkSelector
protected final double maxDistance
protected double[][] D
protected double[][] m
protected final int N
protected final int L
protected final int maxLen
protected boolean plex3Compatible
protected boolean saveAssociatedSimplices
public WitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double maxDistance, int numDivisions)
metricSpace
- the metric space to use in the construction of the complexmaxDistance
- the maximum allowable distancemaxDimension
- the maximum dimension of the complexpublic WitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double maxDistance, int[] indices)
public double getFiltrationValue(Simplex simplex)
public <G> PersistenceInvariantDescriptor<Interval<java.lang.Double>,G> transform(PersistenceInvariantDescriptor<Interval<java.lang.Integer>,G> barcodeCollection)
G
- barcodeCollection
- the set of filtration index barcodespublic void setPlex3Compatbility(boolean value)
public java.util.List<Simplex> getAssociatedSimplices(int witness)
witness
- the witness pointprotected void constructComplex()
PrimitiveStream
constructComplex
in class PrimitiveStream<Simplex>