Curve.ValueAt Method

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.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 abstract double ValueAt(
	double x
)

Parameters

x  Double
A real number.

Return Value

Double
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.
C#
public double[] ValueAt(
	double[] x
)

Parameters

x  Double[]
An array of X-coordinates.

Return Value

Double[]
An array containing 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.
C#
public double[] ValueAt(
	ReadOnlySpan<double> x
)

Parameters

x  ReadOnlySpan<Double>
A read-only span of X-coordinates.

Return Value

Double[]
An array containing 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.
C#
public Vector<double> ValueAt(
	Vector<double> x
)

Parameters

x  Vector<Double>
A vector of X-coordinates.

Return Value

Vector<Double>
A vector containing 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.
C#
public virtual void ValueAt(
	ReadOnlySpan<double> x,
	Span<double> y
)

Parameters

x  ReadOnlySpan<Double>
A read-only span of X-coordinates.
y  Span<Double>
A span to receive the Y-values of the curve at the specified X-coordinates.

Remarks

This method evaluates the curve at each X-coordinate in x and stores the result in the corresponding position in y.

See Also