edu.stanford.math.plex4.homology.filtration
public class IdentityConverter extends FiltrationConverter
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.
|
static IdentityConverter |
getInstance()
This returns the single instance of the class.
|
evaluate, transform
public static IdentityConverter getInstance()
public int getFiltrationIndex(double filtrationValue)
FiltrationConverter
getFiltrationIndex
in class FiltrationConverter
filtrationValue
- the value to convertpublic double getFiltrationValue(int filtrationIndex)
FiltrationConverter
getFiltrationValue
in class FiltrationConverter
filtrationIndex
- the index to convertpublic double computeInducedFiltrationValue(double filtrationValue1, double filtrationValue2)
FiltrationConverter
computeInducedFiltrationValue
in class FiltrationConverter
public double getInitialFiltrationValue()
FiltrationConverter
getInitialFiltrationValue
in class FiltrationConverter