public abstract class Function extends java.lang.Object implements Encodable
f(X)
where X = [x1, x2,
... xn]
.Constructor and Description |
---|
Function() |
Modifier and Type | Method and Description |
---|---|
abstract double |
evaluate(double[] variables)
Evalutes a function value with the specified inputs.
|
java.lang.Object |
getEncoding()
Gets this object encoding.
|
void |
useEncoding(java.lang.Object obj)
Uses the encoding to setup an instance of this object.
|
public abstract double evaluate(double[] variables)
variables
- the array of input variable values.Double.NaN
.public java.lang.Object getEncoding()
getEncoding
in interface Encodable
Encodable.useEncoding(java.lang.Object)
public void useEncoding(java.lang.Object obj)
useEncoding
in interface Encodable
obj
- the object encoding.Encodable.getEncoding()