FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kSpline Class Reference

Description

Used to fit and apply splines.

At present, the implementation of this class supports only piecewise-linear splines.

Inheritance diagram for kSpline:
Inheritance graph

Public Member Functions

k64f kSpline_Apply (kSpline spline, k64f x)
 Calculates the output of the spline function for a single input value. More...
 
kStatus kSpline_ApplyN (kSpline spline, const k64f *x, k64f *f, kSize count)
 Calculates outputs of the spline function for an array of input values. More...
 
k64fkSpline_Coefficients (kSpline spline, kSize index)
 Gets the polynomial coefficients at the specified index. More...
 
kStatus kSpline_Construct (kSpline *spline, kSize knotCount, kAlloc allocator)
 Constructs a kSpline object. More...
 
k64f kSpline_DomainMax (kSpline spline)
 Gets the user-defined maximum x-value for the spline. More...
 
k64f kSpline_DomainMin (kSpline spline)
 Gets the user-defined minimum x-value for the spline. More...
 
kStatus kSpline_Fit (kSpline spline, k32u order, const k64f *x, const k64f *f, kSize count)
 Generates spline coefficients for the given input data. More...
 
kSize kSpline_KnotCount (kSpline spline)
 Reports the count of spline knots. More...
 
k64fkSpline_Knots (kSpline spline)
 Gets the x-values corresponding to the spline knots. More...
 
kStatus kSpline_SetDomain (kSpline spline, k64f xMin, k64f xMax)
 Sets the valid domain for the spline. More...
 

The documentation for this class was generated from the following file: