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, transformpublic int getFiltrationIndex(double filtrationValue)
getFiltrationIndex in class FiltrationConverterfiltrationValue - the value to convertpublic double getFiltrationValue(int filtrationIndex)
getFiltrationValue in class FiltrationConverterfiltrationIndex - the index to convertpublic double computeInducedFiltrationValue(double filtrationValue1,
double filtrationValue2)
FiltrationConvertercomputeInducedFiltrationValue in class FiltrationConverterpublic double getInitialFiltrationValue()
getInitialFiltrationValue in class FiltrationConverter