Type2

data class Type2(val domain: DoubleArray, val range: DoubleArray?, val c0: DoubleArray, val c1: DoubleArray, val n: Double) : PdfFunction

Exponential interpolation. Maps a single-component input x in [domain[0], domain[1]] to c0 + x^N * (c1 - c0) per output channel. The N ("exponent") of 1 yields linear interpolation; >1 biases toward c0; <1 toward c1.

Constructors

Link copied to clipboard
constructor(domain: DoubleArray, range: DoubleArray?, c0: DoubleArray, c1: DoubleArray, n: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val domain: DoubleArray

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

Link copied to clipboard
val n: Double
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