Curve Method
Returns the y value of a curve given the x value.
Definition
Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)
C#
public static double Curve(
double x,
Object xs,
Object ys
)
VB
Public Shared Function Curve (
x As Double,
xs As Object,
ys As Object
) As Double
Parameters
- Double
- A numeric value where the curve needs to be evaluated.
- Object
- An array of numeric values representing the x-coordinates of the curve.
- Object
- An array of numeric values representing the y-coordinates of the curve.
Return Value
Double
Returns the y value of a curve given the x value.
Remarks
The function does not extrapolate and the xs should be sorted with strictly increasing order. Returns null and raises an error if there is at least one non-numeric value in xs or ys, and if their dimensions do not match.