Package space.kscience.kmath.interpolation

Types

Interpolator
Link copied to clipboard
fun fun interface Interpolator<T, in X : T, Y : T>
And interpolator for data with x column type X, y column type Y.
LinearInterpolator
Link copied to clipboard
class LinearInterpolator<T : Comparable<T>>(algebra: Field<T>) : PolynomialInterpolator<T>
Reference JVM implementation: https://github.com/apache/commons-math/blob/master/src/main/java/org/apache/commons/math4/analysis/interpolation/LinearInterpolator.
PolynomialInterpolator
Link copied to clipboard
interface PolynomialInterpolator<T : Comparable<T>> : Interpolator<T, T, T>
And interpolator returning PiecewisePolynomial function
SplineInterpolator
Link copied to clipboard
class SplineInterpolator<T : Comparable<T>>(algebra: Field<T>, bufferFactory: MutableBufferFactory<T>) : PolynomialInterpolator<T>
Generic spline interpolator.

Functions

interpolatePolynomials
Link copied to clipboard
fun <T : Comparable<T>> PolynomialInterpolator<T>.interpolatePolynomials(data: List<Pair<T, T>>): PiecewisePolynomial<T>
fun <T : Comparable<T>> PolynomialInterpolator<T>.interpolatePolynomials(data: Map<T, T>): PiecewisePolynomial<T>