9 #ifndef K_FIRESYNC_SPLINE_H
10 #define K_FIRESYNC_SPLINE_H
145 #include <kFireSync/Data/kSpline.x.h>
k64f * kSpline_Coefficients(kSpline spline, kSize index)
Gets the polynomial coefficients at the specified index.
k64f kSpline_DomainMax(kSpline spline)
Gets the user-defined maximum x-value for the spline.
k64f kSpline_Apply(kSpline spline, k64f x)
Calculates the output of the spline function for a single input value.
Used to fit and apply splines.
kStatus kSpline_Construct(kSpline *spline, kSize knotCount, kAlloc allocator)
Constructs a kSpline object.
Essential API declarations for the kFireSync library.
kStatus kSpline_Fit(kSpline spline, k32u order, const k64f *x, const k64f *f, kSize count)
Generates spline coefficients for the given input data.
k64f * kSpline_Knots(kSpline spline)
Gets the x-values corresponding to the spline knots.
kStatus kSpline_SetDomain(kSpline spline, k64f xMin, k64f xMax)
Sets the valid domain for the spline.
kStatus kSpline_ApplyN(kSpline spline, const k64f *x, k64f *f, kSize count)
Calculates outputs of the spline function for an array of input values.
kSize kSpline_KnotCount(kSpline spline)
Reports the count of spline knots.
k64f kSpline_DomainMin(kSpline spline)
Gets the user-defined minimum x-value for the spline.