FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSpline_Fit ( kSpline  spline,
k32u  order,
const k64f x,
const k64f f,
kSize  count 
)

Generates spline coefficients for the given input data.

The input data will be used to generate spline coefficients. The input data points will first be sorted by x-value. One spline knot will then be created for each unique x-value. At least two unique values are required.

At present, this class supports only first-order spline segments.

Parameters
splineSpline object.
orderPolynomial order for individual spline segments (must be 1).
xx (input) values.
ff (output) values.
countCount of fit points.
Returns
Operation status.