X
- the type of the values in x-direction (Independent variable)Y
- the type of the values in y-direction (Dependent variable)public class MapBackedDiscreteFunction<X,Y> extends java.lang.Object implements DiscreteFunction<X,Y>, java.io.Serializable
DiscreteFunction
backed by a Map
DiscreteFunction
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
MapBackedDiscreteFunction.Builder<X,Y>
The builder for the function based on a map.
|
Modifier and Type | Method and Description |
---|---|
Y |
apply(X input) |
static <X,Y> MapBackedDiscreteFunction.Builder<X,Y> |
builder() |
java.util.Set<X> |
definedXValues() |
boolean |
equals(java.lang.Object obj) |
static <X,Y> DiscreteFunction<X,Y> |
fromMap(java.util.Map<? extends X,? extends Y> function) |
int |
hashCode() |
java.lang.String |
toString() |
public static final <X,Y> DiscreteFunction<X,Y> fromMap(java.util.Map<? extends X,? extends Y> function)
public java.util.Set<X> definedXValues()
definedXValues
in interface DiscreteFunction<X,Y>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static final <X,Y> MapBackedDiscreteFunction.Builder<X,Y> builder()