Skip to content

PDFStitchingFunction

Namespace: O2S.Components.PDF4NET.PDFFunctions

Defines a type 3 (Stitching) function.

public class PDFStitchingFunction : PDFFunction

Inheritance ObjectPDFFunctionPDFStitchingFunction

Remarks

Type 3 PDF functions define a stitching of the subdomains of several 1-input functions to produce a single new 1-input function.

Constructors

PDFStitchingFunction()

Initilizes a new PDFStitchingFunction object.

public PDFStitchingFunction()

Properties

Bounds

Gets or sets the function bounds.

public Double[] Bounds { get; set; }

Property Value

Double[]
An array of k - 1 numbers that, in combination with PDFFunction.Domain, define the intervals to which each function from the PDFStitchingFunction.Functions array applies.

Remarks

Bounds elements must be in order of increasing value, and each value must be within the domain defined by PDFFunction.Domain.


Domain

Gets or sets the function domain.

public Double[] Domain { get; set; }

Property Value

Double[]
An array of 2 x m numbers, where m is the number of input values.


Encode

Gets or sets the function encode array.

public Double[] Encode { get; set; }

Property Value

Double[]
An array of 2 x k numbers that, taken in pairs, map each subset of the domain defined by PDFFunction.Domain and the PDFStitchingFunction.Bounds array to the domain of the corresponding function.


Functions

Gets the sub-functions that make up this function.

public PDFFunctionCollection Functions { get; }

Property Value

PDFFunctionCollection
An array of k 1-input functions making up the stitching function.

Remarks

The output dimensionality of all functions must be the same, and compatible with the value of PDFFunction.Range if PDFFunction.Range is present.


Range

Gets or sets the function range.

public Double[] Range { get; set; }

Property Value

Double[]
An array of 2 x n numbers, where n is the number of output values.


Methods