Input. X coordinates to fit.
Input. Y coordinates to fit.
Input. X coordinates to evaluate the fitted curve at.
Optional slope constraint for the first point. Single.NaN means no constraint.
Optional slope constraint for the final point. Single.NaN means no constraint.
Turn on console output. Default is false.
Compute Method
Static all-in-one method to fit the splines and evaluate at X coordinates.
Syntax
public static double[] Compute( 
   double[] x,
   double[] y,
   double[] xs,
   double startSlope,
   double endSlope,
   bool debug
)

Parameters

x
Input. X coordinates to fit.
y
Input. Y coordinates to fit.
xs
Input. X coordinates to evaluate the fitted curve at.
startSlope
Optional slope constraint for the first point. Single.NaN means no constraint.
endSlope
Optional slope constraint for the final point. Single.NaN means no constraint.
debug
Turn on console output. Default is false.

Return Value

The computed y values for each xs.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also