StitchingFunction Class
A stitching function (PDF Type 3 function) that combines multiple subfunctions.
Declaration
public class StitchingFunction extends CustomFunction
Remarks
A stitching function divides the input values into intervals and evaluates a different subfunction for each interval.
The setBounds(double[] value) method sets the interval boundaries.
The setEncode(Range[] value) method maps input values to the input range of each subfunction.
Inherited Members
Inheritance
StitchingFunction(CustomFunction[] functions, double[] bounds, Range[] encode)
Initializes a new instance of the StitchingFunction class with specified settings.
Declaration
public StitchingFunction(CustomFunction[] functions, double[] bounds, Range[] encode)
Parameters
| Name | Type | Description |
|---|---|---|
| functions | CustomFunction[] | Subfunctions included in the stitching function. |
| bounds | double[] | The boundaries between adjacent subfunctions. |
| encode | Range[] | Ranges that map input values to each subfunction’s input range. |
Methods
getBounds() Method
Returns the boundaries between adjacent subfunctions.
Declaration
public double[] getBounds()
Returns
| Type | Description |
|---|---|
| double[] | An array of boundary values. |
getEncode() Method
Returns ranges that map input values to each subfunction’s input range.
Declaration
public Range[] getEncode()
Returns
| Type | Description |
|---|---|
| Range[] | An array of |
getFunctions() Method
Returns the stitching function’s subfunctions.
Declaration
public CustomFunction[] getFunctions()
Returns
| Type | Description |
|---|---|
| CustomFunction[] | An array of |
setBounds(double[] value) Method
Sets the boundaries between adjacent subfunctions.
Declaration
public void setBounds(double[] value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double[] | An array of boundary values. |
setEncode(Range[] value) Method
Sets ranges that map input values to each subfunction’s input range.
Declaration
public void setEncode(Range[] value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Range[] | An array of |
setFunctions(CustomFunction[] value) Method
Sets the stitching function’s subfunctions.
Declaration
public void setFunctions(CustomFunction[] value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | CustomFunction[] | An array of |