Type3

data class Type3(val domain: DoubleArray, val range: DoubleArray?, val functions: List<PdfFunction>, val bounds: DoubleArray, val encode: DoubleArray) : PdfFunction

Stitching function. A piecewise function that delegates to one of functions based on x's position relative to bounds, remapping x into the corresponding subfunction's domain via encode.

Constructors

Link copied to clipboard
constructor(domain: DoubleArray, range: DoubleArray?, functions: List<PdfFunction>, bounds: DoubleArray, encode: DoubleArray)

Properties

Link copied to clipboard

k-1 inner breakpoints; outer bounds come from domain.

Link copied to clipboard
open override val domain: DoubleArray

Input bounds — paired [min0, max0, min1, max1, …].

Link copied to clipboard

2k-long re-mapping pairs: [in0_lo, in0_hi, in1_lo, in1_hi, …].

Link copied to clipboard
Link copied to clipboard
open override val outputCount: Int

Number of output components.

Link copied to clipboard
open override val range: DoubleArray?

Optional output bounds; null = unclipped.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Evaluate f(input) → output. The output length is outputCount.

Link copied to clipboard
open override fun hashCode(): Int