The OpenD Programming Language

fitSpline

@nogc @trusted pure
fitSpline
(
alias d = "a - b"
T
)
(
scope const ref LeastSquaresSettings!T settings
,
scope const T[2][] points
,
scope const T[] x
,
scope const T[] l
,
scope const T[] u
,
const T lambda = 0
,)
if (
(
is(T == float) ||
is(T == double)
)
)

Parameters

settings LeastSquaresSettings!T

LMA settings

points T[2][]

points to fit

x T[]

fixed X values of the spline

l T[]

lower bounds for spline(X) values

u T[]

upper bounds for spline(X) values

lambda T

coefficient for the integral of the square of the second derivative

configuration SplineConfiguration!T

spline configuration (optional)

Return Value

Type: FitSplineResult!T

$(FitSplineResult)

Meta