Rbf2DInterpolator

class Rbf2DInterpolator(val points: List<Vector2>, val weights: Array<DoubleArray>, val values: Array<DoubleArray>, val rbf: (Double) -> Double, val mean: DoubleArray)(source)

A two-dimensional Radial Basis Function (RBF) interpolator.

This class provides functionality to interpolate values in a 2D space using Radial Basis Functions (RBFs). It computes interpolated values for input points based on given data points, their corresponding values, and an RBF kernel that defines the basis function.

Parameters

points

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

weights

A 2D array of weights corresponding to each point for each output dimension.

values

A 2D array of known function values at the given points.

rbf

The radial basis function that defines how the influence of each point decreases with distance. It takes a squared distance as input and returns a scalar value.

mean

The mean values for each output dimension, used to offset the interpolated results.

Constructors

Link copied to clipboard
constructor(points: List<Vector2>, weights: Array<DoubleArray>, values: Array<DoubleArray>, rbf: (Double) -> Double, mean: DoubleArray)

Properties

Link copied to clipboard
Link copied to clipboard
val points: List<Vector2>
Link copied to clipboard
val rbf: (Double) -> Double
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun interpolate(x: Vector2): DoubleArray