edu.stanford.math.plex4.homology.filtration
public class ExternalConverter extends FiltrationConverter
This class implements a conversion between filtration values and filtration indices that is given as an argument at instantiation of the converter. The given filtration values array will be sorted.
Constructor and Description |
---|
ExternalConverter(double[] fvalues) |
Modifier and Type | Method and Description |
---|---|
double |
computeInducedFiltrationValue(double filtrationValue1,
double filtrationValue2)
This function computes the filtration value that is consistent with the
ordering of filtration indices.
|
int |
getFiltrationIndex(double filtrationValue)
This function computes the index based on a filtration value.
|
double |
getFiltrationValue(int filtrationIndex)
This function computes the filtration value from a filtration index.
|
double |
getInitialFiltrationValue()
This function returns the filtration at index 0.
|
evaluate, transform
public int getFiltrationIndex(double filtrationValue)
getFiltrationIndex
in class FiltrationConverter
filtrationValue
- the value to convertpublic double getFiltrationValue(int filtrationIndex)
getFiltrationValue
in class FiltrationConverter
filtrationIndex
- the index to convertpublic double computeInducedFiltrationValue(double filtrationValue1, double filtrationValue2)
FiltrationConverter
computeInducedFiltrationValue
in class FiltrationConverter
public double getInitialFiltrationValue()
getInitialFiltrationValue
in class FiltrationConverter