FitAndEval Method
Fit x,y and then eval at points xs and return the corresponding y's.
This does the "natural spline" style for ends.
This can extrapolate off the ends of the splines.
You must provide points in X sort order.
Syntax
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