public class Function
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Function |
DEFAULT |
static Function |
IDENTITY |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Double> |
apply(java.util.List<java.lang.Double> args)
Apply the function to supplied input values
|
void |
delete() |
java.util.List<java.lang.Double> |
getDomain()
The domain of the function.
|
int |
getNInputs()
The number of inputs to the function.
|
int |
getNOutputs()
The number of outputs from the function.
|
java.util.List<java.lang.Double> |
getRange()
The range of the function.
|
void |
setDomain(java.util.List<java.lang.Double> domain)
The domain of the function.
|
void |
setRange(java.util.List<java.lang.Double> range)
The range of the function.
|
java.lang.String |
toString()
Convert the function to a displayable string.
|
public static final Function DEFAULT
public static final Function IDENTITY
public void delete()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<java.lang.Double> getDomain()
Each successive pair of elements gives the minimum and maximum values for one of the inputs.
Input values to the function are clamped to these minimum and maximum values.
public void setDomain(java.util.List<java.lang.Double> domain)
Each successive pair of elements gives the minimum and maximum values for one of the inputs.
Input values to the function are clamped to these minimum and maximum values.
public java.util.List<java.lang.Double> getRange()
Each successive pair of elements gives the minimum and maximum values for one of the outputs.
Output values from the function are clamped to these minimum and maximum values.
public void setRange(java.util.List<java.lang.Double> range)
Each successive pair of elements gives the minimum and maximum values for one of the outputs.
Output values from the function are clamped to these minimum and maximum values.
public int getNInputs()
public int getNOutputs()
public java.util.List<java.lang.Double> apply(java.util.List<java.lang.Double> args)
args - input values for the function. The number of input values must agree with the number of inputs the function takes.