#include <AMA.h>
Functions | |
long int | AMA_UnvApprox (AMA_OPTIONS *options, long int n, double *x, double *z, double *epsilon, long int degree, AMA_SPLINE **spline) |
Approximation of Univariate Data More... | |
long int AMA_UnvApprox | ( | AMA_OPTIONS * | options, |
long int | n, | ||
double * | x, | ||
double * | z, | ||
double * | epsilon, | ||
long int | degree, | ||
AMA_SPLINE ** | spline | ||
) |
Approximation of Univariate Data
For a given set of data and approximation tolerances , for , this function employs cnspla to compute the spline
that minimizes
subject to the approximation constraints
for .
In the above definition of the , for , are the coefficients of the univariate B-splines of degree which are based on the knot vector . The knot vector depends on the independent variable data and the degree and is defined by AMA_LamdaInterp().
This function does the following:
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_UnvApprox(). |
n | [in] The number of data points . Must satisfy n . |
x | [in] Array of size n containing the independent variable data , for . Must be in strictly ascending order. |
z | [in] Array of size n containing the dependent variable data , for . |
epsilon | [in] Array of size n containing the approximation tolerances , for . Must satisfy for all . If epsilon = NULL, then this function uses for all . |
degree | [in] The degree . Must satisfy degree . |
spline | [out] Pointer to AMA_SPLINE pointer containing the spline approximation. Must satisfy spline NULL. |
User Callable Function - Documented 101715