NamedFunction Class Documentation
class NamedFunction : FunctionNamespace:Datalogics::PDFL
- Inherits from:
Function
Detailed Description
Defines a function currently in use.
A Function is a process; it takes input values and manipulates them to create output values.
Referenced by
Uses types
Property Documentation
Default
static Function Default[get]A Function representing the Default named function.
Domain
System.Collections.Generic.IList< System.Double > Domain[get, set]Identity
static Function Identity[get]A Function representing the Identity named function, which returns its input values unchanged.
NInputs
int NInputs[get]NOutputs
int NOutputs[get]Name
string Name[get]Range
System.Collections.Generic.IList< System.Double > Range[get, set]Member Function Documentation
Apply
override System.Collections.Generic.IList< System.Double > Apply(System.Collections.Generic.IList< System.Double > args)Parameters
args: System.Collections.Generic.IList< System.Double >input values for the function. The number of input values must agree with the number of inputs the function takes.
Returns:
override System.Collections.Generic.IList< System.Double >a list of the result values from the function
Apply the function to supplied input values.
For Identity functions, this returns the same inputs. Not defined for any other kinds of named functions.
Dispose
void Dispose()Returns:
voidEquals
override bool Equals(object obj)Parameters
obj: object
Returns:
override boolToString
override string ToString()Returns:
override stringThe name of this NamedFunction.
Convert the function to a displayable string.
operator!=
Parameters
Returns:
booltrue if the two Functions are not equal; otherwise, false.
Tests two Function objects for inequality.
operator==
Parameters
Returns:
booltrue if the two Functions are equal; otherwise, false.
Tests two Function objects for equality.