corda / net.corda.finance.contracts.math / LinearInterpolator

LinearInterpolator

class LinearInterpolator : Interpolator

Interpolates values between the given data points using straight lines.

Types

Factory

companion object Factory : InterpolatorFactory

Constructors

<init>

LinearInterpolator(xs: DoubleArray, ys: DoubleArray)

Interpolates values between the given data points using straight lines.

Functions

interpolate

fun interpolate(x: Double): Double

Companion Object Functions

create

fun create(xs: DoubleArray, ys: DoubleArray): LinearInterpolator

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.