ExponentialFunction Class Documentation
classExponentialFunction : FunctionNamespace:com::datalogics::PDFL
- Inherits from:
Function
Detailed Description
An interpolation between two output values as input values vary across a domain. For an Exponential Function, the curve between the two values is determined by the exponent N.
Uses types
Constructor & Destructor Documentation
ExponentialFunction
ExponentialFunction(java.util.List< Double >domain, intnOutputs, java.util.List< Double >C0, java.util.List< Double >C1, doubleN)Parameters
domain: java.util.List< Double >the domain of the function. 2 elements.
nOutputs: intthe number of outputs of the function
C0: java.util.List< Double >the output value when the input value is 0
C1: java.util.List< Double >the output value when the input value is 1
N: doublethe exponential factor, which alters the curve of output values as the input values vary across the domain.
Create an Exponential Function, which is the exponential interpolation between two output values as the input values vary across the domain.
Member Function Documentation
DLIntern
Parameters
cs: Function
Returns:
FunctionDisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()apply
java.util.List< Double >apply(java.util.List< Double >args)Parameters
args: java.util.List< Double >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 functionApply the function to supplied input values
delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidfinalize
voidfinalize()Returns:
voidgetC0
java.util.List< Double >getC0()Returns:
java.util.List< Double >The values for the function when the input is 0.0. There must be the same number of values as the number of outputs in the function.
getC1
java.util.List< Double >getC1()Returns:
java.util.List< Double >The values for the function when the input is 1.0. There must be the same number of values as the number of outputs in the function.
getDomain
java.util.List< Double >getDomain()Returns:
java.util.List< Double >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.
getN
doublegetN()Returns:
doubleThe exponential factor N.
getNInputs
intgetNInputs()Returns:
intThe number of inputs to the function.
getNOutputs
intgetNOutputs()Returns:
intThe number of outputs from the function.
getRange
java.util.List< Double >getRange()Returns:
java.util.List< Double >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.
setC0
voidsetC0(java.util.List< Double >C0)Parameters
C0: java.util.List< Double >
Returns:
voidThe values for the function when the input is 0.0. There must be the same number of values as the number of outputs in the function.
setC1
voidsetC1(java.util.List< Double >C1)Parameters
C1: java.util.List< Double >
Returns:
voidThe values for the function when the input is 1.0. There must be the same number of values as the number of outputs in the function.
setDomain
voidsetDomain(java.util.List< Double >domain)Parameters
domain: java.util.List< Double >
Returns:
voidThe 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.
setN
voidsetN(doublearg0)Parameters
arg0: double
Returns:
voidThe exponential factor N.
setRange
voidsetRange(java.util.List< Double >range)Parameters
range: java.util.List< Double >
Returns:
voidThe 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.
toString
StringtoString()Returns:
StringA string value describing the function.