public class NamedFunction extends Function
| 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() |
boolean |
equals(java.lang.Object rhs) |
java.util.List<java.lang.Double> |
getDomain()
The domain of the function.
|
java.lang.String |
getName()
The name of the function.
|
int |
getNInputs()
The number of inputs to the function. Throws a 'not implemented' exception for named functions.
|
int |
getNOutputs()
The number of outputs from the function. Throws a 'not implemented' exception for named functions.
|
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 boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic java.lang.String toString()
public java.lang.String getName()
public java.util.List<java.lang.Double> getDomain()
Throws a 'not implemented' exception for named functions.
public void setDomain(java.util.List<java.lang.Double> domain)
Throws a 'not implemented' exception for named functions.
public java.util.List<java.lang.Double> getRange()
Throws a 'not implemented' exception for named functions.
public void setRange(java.util.List<java.lang.Double> range)
Throws a 'not implemented' exception for named functions.
public int getNInputs()
getNInputs in class Functionpublic int getNOutputs()
getNOutputs in class Functionpublic java.util.List<java.lang.Double> apply(java.util.List<java.lang.Double> args)
For Identity functions, this returns the same inputs. Not defined for any other kinds of named functions.