edu.stanford.math.plex4.homology.filtration
public class IncreasingLinearConverter extends FiltrationConverter
This class implements a conversion between filtration values and filtration indices that is linear and increasing. If we let f_k be the filtration value at index k and N is the number of divisions, then this mapping satisfies:
Constructor and Description |
---|
IncreasingLinearConverter(int numDivisions,
double maxFiltrationValue)
This initializes the object with a default minimum filtration value of zero.
|
IncreasingLinearConverter(int numDivisions,
double minFiltrationValue,
double maxFiltrationValue)
This constructor initializes the object with the number of divisions in the range, and the
minimum and maximum values.
|
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.
|
double |
getDelta() |
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.
|
double |
getMaxFiltrationValue() |
double |
getMinFiltrationValue() |
int |
getNumDivisions() |
evaluate, transform
public IncreasingLinearConverter(int numDivisions, double minFiltrationValue, double maxFiltrationValue)
numDivisions
- the number of divisions to use in the rangeminFiltrationValue
- the minimum filtration valuemaxFiltrationValue
- the maximum filtration valuepublic IncreasingLinearConverter(int numDivisions, double maxFiltrationValue)
numDivisions
- the number of divisions in the rangemaxFiltrationValue
- the maximum filtration valuepublic 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
public int getNumDivisions()
public double getMinFiltrationValue()
public double getMaxFiltrationValue()
public double getDelta()