Click or drag to resize

NaturalCubicSpline(DoubleVector, DoubleVector) Constructor

Constructs an instance of NaturalCubicSpline for the given paired vectors of x- and y-values.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public NaturalCubicSpline(
	DoubleVector x,
	DoubleVector y
)

Parameters

x  DoubleVector
A vector of x-values. The values must be in increasing order.
y  DoubleVector
A vector of y-values.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if the values in the x vector are not strictly increasing, or if the vectors x and y do not have the same length, or there are less than two points.
See Also