InterpolatedLookupTable

Performs spline interpolation given a set of control points.

Utility from FTCLib Source

Since

1.0.0-pre

Constructors

Link copied to clipboard
constructor()
Creates a new instance of InterpolatedLookupTable to add values to.

Functions

Link copied to clipboard
open fun add(input: Double, output: Double)
Adds a control point to the lookup table.
Link copied to clipboard
open fun createLUT()
Creates a monotone cubic spline from a given set of control points.
Link copied to clipboard
open fun get(input: Double): Double
Interpolates the value of Y = f(X) for given X.
Link copied to clipboard
open fun getMax(): Double
Link copied to clipboard
open fun getMin(): Double
Link copied to clipboard
open fun testOutOfRange(input: Double): Int
Check if a given input will be out of range by this LUT.
Link copied to clipboard
open fun toString(): String