Rbf2DInterpolator

fun Rbf2DInterpolator(points: List<Vector2>, values: Array<DoubleArray>, smoothing: Double = 0.0, rbf: Rbf): Rbf2DInterpolator(source)

Constructs a two-dimensional Radial Basis Function (RBF) interpolator using provided input points, their corresponding values, a smoothing factor, and a radial basis function (RBF) kernel.

The interpolator computes a weight matrix derived from the RBF kernel and the supplied data. The resulting interpolator can be used to estimate the values at new locations in a 2D space.

Return

An instance of Rbf2DInterpolator configured with the computed weight matrix and input data.

Parameters

points

A list of 2D points representing the input data locations.

values

A 2D array of known function values corresponding to the input points. Each row corresponds to a point, and each column corresponds to a value in a specific dimension.

smoothing

A non-negative smoothing factor to reduce interpolation sensitivity. Default is 0.0. Larger values result in smoother interpolations.

rbf

The radial basis function used for interpolation. This function takes a squared distance as input and returns a scalar value representing the influence of points at that distance.