Package com.datalogics.PDFL
Class Function
java.lang.Object
com.datalogics.PDFL.Function
- Direct Known Subclasses:
ExponentialFunction,NamedFunction,PostScriptCalculatorFunction
A function is a process. A function takes input values and manipulates them to create output values.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionApply the function to supplied input valuesvoiddelete()The domain of the function.intThe number of inputs to the function.intThe number of outputs from the function.getRange()The range of the function.voidThe domain of the function.voidThe range of the function.toString()Convert the function to a displayable string.
-
Field Details
-
DEFAULT
-
IDENTITY
-
-
Method Details
-
delete
public void delete() -
toString
Convert the function to a displayable string. -
getDomain
The domain of the function. 2 * m elements, where m is the number of inputs to the function.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.
-
setDomain
The domain of the function. 2 * m elements, where m is the number of inputs to the function.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.
-
getRange
The range of the function. 2 * n elements, where n is the number of outputs from the function.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.
-
setRange
The range of the function. 2 * n elements, where n is the number of outputs from the function.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.
-
getNInputs
public int getNInputs()The number of inputs to the function. -
getNOutputs
public int getNOutputs()The number of outputs from the function. -
apply
Apply the function to supplied input values- Parameters:
args- input values for the function. The number of input values must agree with the number of inputs the function takes.- Returns:
- a list of the result values from the function
-