PostScriptCalculatorFunction Class Documentation

classPostScriptCalculatorFunction : Function

Namespace:Datalogics::PDFL

Inherits from:
Function

Detailed Description

A function represented as a stream containing code written in a small subset of the PostScript language.

Constructor & Destructor Documentation

PostScriptCalculatorFunction

PostScriptCalculatorFunction(System.Collections.Generic.IList< System.Double >domain, System.Collections.Generic.IList< System.Double >range, stringcode)

Parameters

domain: System.Collections.Generic.IList< System.Double >

an array of 2 * m numbers, where m is the number of input values

range: System.Collections.Generic.IList< System.Double >

an array of 2 * n numbers, where n is the number of output values

code: string

the code of the function, written in a subset of the PostScript language

Create PostScript calculator function, represented as a stream containing code written in a small subset of the PostScript language.

Property Documentation

Code

stringCode[get]

Default

static FunctionDefault[get]

A Function representing the Default named function.

Domain

System.Collections.Generic.IList< System.Double >Domain[get, set]

Identity

static FunctionIdentity[get]

A Function representing the Identity named function, which returns its input values unchanged.

NInputs

intNInputs[get]

NOutputs

intNOutputs[get]

Range

System.Collections.Generic.IList< System.Double >Range[get, set]

Stream

PDFStreamStream[get]

Member Function Documentation

Apply

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:

a list of the result values from the function

Apply the function to supplied input values

ConstructorRetrieve

static new static PostScriptCalculatorFunctionConstructorRetrieve(System.IntPtrignored)

Parameters

ignored: System.IntPtr

Returns:

new static PostScriptCalculatorFunction

Dispose

voidDispose()

Returns:

void

DisposeChildren

voidDisposeChildren()

Returns:

void

ToString

override stringToString()

Returns:

A string representation of the PostScriptCalculatorFunction, including the number of inputs and outputs, domain, range, and the PostScript code.

A string value describing the function.

operator!=

static booloperator!=(Functiona, Functionb)

Parameters

a: Function

The first Function to compare.

b: Function

The second Function to compare.

Returns:

true if the two Functions are not equal; otherwise, false.

Tests two Function objects for inequality.

operator==

static booloperator==(Functiona, Functionb)

Parameters

a: Function

The first Function to compare.

b: Function

The second Function to compare.

Returns:

true if the two Functions are equal; otherwise, false.

Tests two Function objects for equality.