#include <AMA.h>
Functions | |
long int | AMA_SplineCheck (AMA_OPTIONS *options, AMA_SPLINE *spline) |
Check Validity of Spline Structure More... | |
long int | AMA_SplineFree (AMA_OPTIONS *options, AMA_SPLINE **spline) |
Free a Spline Structure More... | |
long int | AMA_SplineIntegral (AMA_OPTIONS *options, long int *porder, AMA_SPLINE *spline, AMA_SPLINE **integral) |
Analytic Integral of a Spline More... | |
long int | AMA_SplinePartial (AMA_OPTIONS *options, long int *porder, AMA_SPLINE *spline, AMA_SPLINE **partial) |
Analytic Partial of a Spline More... | |
long int | AMA_SplinePartialValue (AMA_OPTIONS *options, double *x, long int *porder, AMA_SPLINE *spline, double *sval) |
Evaluate Partial Derivative of a Spline More... | |
long int | AMA_SplineRead (AMA_OPTIONS *options, const char *splfile, const char *type, AMA_SPLINE **spline) |
Read a Spline More... | |
long int | AMA_SplineValue (AMA_OPTIONS *options, double *x, AMA_SPLINE *spline, double *sval) |
Evaluate a Spline More... | |
long int | AMA_SplineWrite (AMA_OPTIONS *options, const char *splfile, const char *type, AMA_SPLINE *spline) |
Write a Spline More... | |
double | AMA_SplineInfbnd (void) |
Define a finite number which represents an infinite bound. More... | |
long int AMA_SplineCheck | ( | AMA_OPTIONS * | options, |
AMA_SPLINE * | spline | ||
) |
Check Validity of Spline Structure
This function determines if the AMA_SPLINE structure which represents the spline given as
is properly defined. It insures the following conditions are satisfied:
Additionally, for each knot vector , for
, defined as
this function insures the following conditions are satisfied:
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplineCheck(). |
spline | [in] Pointer to AMA_SPLINE structure to check. Must satisfy spline ![]() |
User Callable Function - Documented 112514
long int AMA_SplineFree | ( | AMA_OPTIONS * | options, |
AMA_SPLINE ** | spline | ||
) |
Free a Spline Structure
This function frees an AMA_SPLINE structure which represents the spline given as
This function does the following:
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplineFree(). |
spline | [in] Pointer to AMA_SPLINE pointer containing structure to free. Must satisfy spline ![]() |
User Callable Function - Documented 112514
double AMA_SplineInfbnd | ( | void | ) |
Define a finite number which represents an infinite bound.
This function defines the finite number which represents an infinite bound. By default the univariate splines are subject to the bounds
and the multivariate splines are subject to the bounds
where and
. Therefore, the splines are unbounded but finite bounds can be set with AMA_OptionsSetBounds().
User Support Function - Documented 100415 - !!!THIS IS NOT A USER CALLABLE FUNCTION - DOCUMENT IS INCLUDED FOR COMPLETENESS!!!
long int AMA_SplineIntegral | ( | AMA_OPTIONS * | options, |
long int * | porder, | ||
AMA_SPLINE * | spline, | ||
AMA_SPLINE ** | integral | ||
) |
Analytic Integral of a Spline
For a spline given as
this function computes the indefinite integral
The integral with respect to is computed
times, for
; where
or
.
Parameter Note: In the parameter descriptions given below the limits on are
and k
.
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplineIntegral(). |
porder | [in] Array of size ![]() ![]() ![]() ![]() ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline to integrate. Must be a valid AMA_SPLINE structure, see AMA_SplineCheck(). |
integral | [out] Pointer to AMA_SPLINE pointer containing the spline's indefinite integral. Must satisfy integral ![]() |
User Callable Function - Documented 021116
long int AMA_SplinePartial | ( | AMA_OPTIONS * | options, |
long int * | porder, | ||
AMA_SPLINE * | spline, | ||
AMA_SPLINE ** | partial | ||
) |
Analytic Partial of a Spline
For a spline given as
this function computes the partial derivative
where the partial order and
is the partial order in
, for
.
Parameter Note: In the parameter descriptions given below the limits on are
and k
.
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplinePartial(). |
porder | [in] Array of size ![]() ![]() ![]() ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline to differentiate. Must be a valid AMA_SPLINE structure, see AMA_SplineCheck(). |
partial | [out] Pointer to AMA_SPLINE pointer containing the spline's partial derivative. Must satisfy partial ![]() |
User Callable Function - Documented 021116
long int AMA_SplinePartialValue | ( | AMA_OPTIONS * | options, |
double * | x, | ||
long int * | porder, | ||
AMA_SPLINE * | spline, | ||
double * | sval | ||
) |
Evaluate Partial Derivative of a Spline
For a spline given as
this function evaluates the partial derivative
of the spline at a point . The partial order
is
where
is the partial order in
, for
. The value of
must lie within the spline's domain; that is, if the knot vector
is defined as
then must satisfy
, for all
. However, extrapolation can be enabled with AMA_OptionsSetExtrapolation().
Parameter Note: In the parameter descriptions given below the limits on are
and k
.
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplinePartialValue(). |
x | [in] Array of size ![]() ![]() ![]() |
porder | [in] Array of size ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline whose partial derivative is evaluated. Must satisfy spline ![]() |
sval | [out] The value of the partial derivative of ![]() ![]() ![]() |
User Callable Function - Documented 021116
long int AMA_SplineRead | ( | AMA_OPTIONS * | options, |
const char * | splfile, | ||
const char * | type, | ||
AMA_SPLINE ** | spline | ||
) |
Read a Spline
This function allocates and reads a spline from either an ascii or binary file.
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplineRead(). |
splfile | [in] Name of file from which spline is read. |
type | [in] Format of splfile. Must equal either ascii or binary. The value of type is not case sensitive. |
spline | [out] Pointer to AMA_SPLINE pointer containing the spline read from splfile. Must satisfy spline ![]() |
User Callable Function - Documented 021116
long int AMA_SplineValue | ( | AMA_OPTIONS * | options, |
double * | x, | ||
AMA_SPLINE * | spline, | ||
double * | sval | ||
) |
Evaluate a Spline
For a spline given as
this function evaluates the spline at a point . The value of
must lie within the spline's domain; that is, if the knot vector
is defined as
then must satisfy
, for all
. However, extrapolation can be enabled with AMA_OptionsSetExtrapolation().
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplineValue(). |
x | [in] Array of size ![]() ![]() ![]() ![]() ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline to evaluate. Must satisfy spline ![]() |
sval | [out] The value of ![]() ![]() |
User Callable Function - Documented 021116
long int AMA_SplineWrite | ( | AMA_OPTIONS * | options, |
const char * | splfile, | ||
const char * | type, | ||
AMA_SPLINE * | spline | ||
) |
Write a Spline
This function writes a spline to either an ascii or binary file.
options | [in] Pointer to AMA_OPTIONS. Must be initialized with AMA_Options() prior to calling AMA_SplineWrite(). |
splfile | [in] Name of file to which spline is written. |
type | [in] Format of splfile. Must equal either ascii or binary. The value of type is not case sensitive. |
spline | [out] Pointer to AMA_SPLINE containing the spline to write to splfile. Must satisfy spline ![]() |
User Callable Function - Documented 021116