public abstract class AbstractFunction extends java.lang.Object implements Function
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIMENSION_PROPERTY
How should we refer to the dimension?
|
Constructor and Description |
---|
AbstractFunction(int dim) |
public static final java.lang.String DIMENSION_PROPERTY
public AbstractFunction(int dim)
dim
- Input dimension of the functionpublic int getDimension()
getDimension
in interface Function
Function.getDimension()
public java.lang.String getCode()
public void setCode(java.lang.String code)
public java.lang.String getName()
public void setName(java.lang.String name)
public abstract float map(float[] from)
map
in interface Function
from
- Must have same length as getDimension()Function.map(float[])
public float[] multiMap(float[][] from)
multiMap
in interface Function
from
- An array of arguments; each element must have length getDimension().Function.multiMap(float[][])