edu.stanford.math.plex4.streams.impl
T
- the type of the underlying metric spacepublic class LazyWitnessStream<T> extends FlagComplexStream
Modifier and Type | Field and Description |
---|---|
protected double[][] |
D |
protected double |
epsilon |
protected int |
L |
protected LandmarkSelector<T> |
landmarkSelector
This is the selection of landmark points
|
protected double[] |
m |
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.
|
protected int |
N |
protected int |
nu
This is the nu value described in the paper.
|
protected boolean |
plex3Compatible |
converter, indices, maxAllowableDimension, neighborhoodGraph
storageStructure
Constructor and Description |
---|
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double[] filtrationValues) |
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double[] filtrationValues,
int nu) |
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double[] filtrationValues,
int[] indices) |
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double[] filtrationValues,
int nu,
int[] indices) |
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double maxDistance,
int numDivisions) |
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double maxDistance,
int[] indices) |
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double maxDistance,
int nu,
int numDivisions)
Constructor which initializes the complex with a metric space.
|
LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace,
LandmarkSelector<T> landmarkSelector,
int maxDimension,
double maxDistance,
int nu,
int[] indices) |
Modifier and Type | Method and Description |
---|---|
protected UndirectedWeightedListGraph |
constructEdges()
This function implements the construction of the 1-skeleton.
|
protected static boolean |
contains(int[] array,
int value) |
protected gnu.trove.TIntHashSet |
getAllWitnesses(double e_ij,
int... externalIndices) |
java.util.List<Simplex> |
getAssociatedSimplices(int witness)
This function returns the list of simplices such that they have the given
point as their witness.
|
static int |
getDefaultNuValue() |
protected edu.stanford.math.primitivelib.autogen.pair.IntDoublePair |
getWitnessAndDistance(int... landmarkIndices) |
protected boolean |
isWitness(int x,
int[] externalIndices) |
protected boolean |
isWitness(int x,
Simplex simplex) |
void |
setPlex3Compatbility(boolean value) |
protected void |
updateWitnessInformation(int n_star,
double e_ij,
int... externalIndices) |
protected void |
updateWitnessInformationInternalIndices(int n_star,
double e_ij,
int... internalIndices) |
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 LandmarkSelector<T> landmarkSelector
protected final int nu
protected final double maxDistance
protected double[][] D
protected double[] m
protected final int N
protected final int L
protected final double epsilon
protected boolean plex3Compatible
public LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double maxDistance, int nu, int numDivisions)
metricSpace
- the metric space to use in the construction of the complexmaxDistance
- the maximum allowable distancemaxDimension
- the maximum dimension of the complexpublic LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double maxDistance, int numDivisions)
public LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double maxDistance, int nu, int[] indices)
public LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double maxDistance, int[] indices)
public LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double[] filtrationValues, int nu)
public LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double[] filtrationValues)
public LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double[] filtrationValues, int nu, int[] indices)
public LazyWitnessStream(AbstractSearchableMetricSpace<T> metricSpace, LandmarkSelector<T> landmarkSelector, int maxDimension, double[] filtrationValues, int[] indices)
public void setPlex3Compatbility(boolean value)
public static int getDefaultNuValue()
public java.util.List<Simplex> getAssociatedSimplices(int witness)
witness
- the witness pointprotected UndirectedWeightedListGraph constructEdges()
FlagComplexStream
constructEdges
in class FlagComplexStream
protected edu.stanford.math.primitivelib.autogen.pair.IntDoublePair getWitnessAndDistance(int... landmarkIndices)
protected static boolean contains(int[] array, int value)
protected void updateWitnessInformationInternalIndices(int n_star, double e_ij, int... internalIndices)
protected void updateWitnessInformation(int n_star, double e_ij, int... externalIndices)
protected boolean isWitness(int x, Simplex simplex)
protected boolean isWitness(int x, int[] externalIndices)
protected gnu.trove.TIntHashSet getAllWitnesses(double e_ij, int... externalIndices)