X
- function arguments typeY
- function values typepublic class SortedMapBackedDiscreteFunction<X extends java.lang.Comparable<X>,Y> extends java.lang.Object implements DiscreteFunction<X,Y>, java.io.Serializable
KeyValueFunction
only provides values at discrete points of X argument. If value is
requested for unavailable value an IllegalDiscreteFunctionUsageException
is thrown.Modifier and Type | Class and Description |
---|---|
static class |
SortedMapBackedDiscreteFunction.Builder<X extends java.lang.Comparable<X>,Y>
The builder for the function based on a sorted map.
|
Modifier and Type | Method and Description |
---|---|
static <X extends java.lang.Comparable<X>,Y> |
builder() |
java.lang.String |
getName() |
java.util.List<X> |
getXs() |
Y |
getY(X xValue) |
java.util.List<Y> |
getYs() |
java.util.List<Y> |
getYsErr() |
public Y getY(X xValue)
getY
in interface KeyValueFunction<X extends java.lang.Comparable<X>,Y>
xValue
- argument of type <X>
<Y>
public java.util.List<X> getXs()
getXs
in interface DiscreteFunction<X extends java.lang.Comparable<X>,Y>
public java.util.List<Y> getYs()
getYs
in interface DiscreteFunction<X extends java.lang.Comparable<X>,Y>
public java.util.List<Y> getYsErr()
getYsErr
in interface DiscreteFunction<X extends java.lang.Comparable<X>,Y>
public java.lang.String getName()
getName
in interface DiscreteFunction<X extends java.lang.Comparable<X>,Y>
public static final <X extends java.lang.Comparable<X>,Y> SortedMapBackedDiscreteFunction.Builder<X,Y> builder()