CubicSpline.ValueAt Method

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0

Overload List

ValueAt(Double) Gets the Y-value of the curve at the specified X-coordinate.
ValueAt(Double[]) Gets the Y-values of the curve at the specified X-coordinates.
ValueAt(ReadOnlySpan<Double>) Gets the Y-values of the curve at the specified X-coordinates.
ValueAt(Vector<Double>) Gets the Y-values of the curve at the specified X-coordinates.
ValueAt(ReadOnlySpan<Double>, Span<Double>) Gets the Y-values of the curve at the specified X-coordinates.

ValueAt(Double)

Gets the Y-value of the curve at the specified X-coordinate.
C#
public override double ValueAt(
	double x
)

Parameters

x  Double
A real number.

Return Value

Double
The Y-value of the curve at x.

Remarks

If x is less than the lower bound of the first interval, the value is that of the cubic polynomial on the first interval extended to the left. If x is greater than the upper bound of the last interval, the value is that of the cubic polynomial on the last interval extended to the right.

See Also