#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 ![]() ![]() |
x | [in] Array of size n containing the independent variable data ![]() ![]() |
z | [in] Array of size n containing the dependent variable data ![]() ![]() |
epsilon | [in] Array of size n containing the approximation tolerances ![]() ![]() ![]() ![]() ![]() ![]() |
degree | [in] The degree ![]() ![]() ![]() |
spline | [out] Pointer to AMA_SPLINE pointer containing the spline approximation. Must satisfy spline ![]() |
User Callable Function - Documented 101715