Data Structures | |
| struct | mirml_nr_itpl_t_ |
| Interpolation structure. More... | |
Typedefs | |
| typedef struct mirml_nr_itpl_t_ | mirml_nr_itpl_t |
| Interpolation structure. | |
Functions | |
| mirkl_error_t * | mirml_nr_itpl_init_cspline (mirml_nr_itpl_t *itpl, double *x, double *y, double *y2, int n, double yp1, double ypn) |
| Initialization of cubic spline interpolation. | |
| void | mirml_nr_itpl_free_cspline (mirml_nr_itpl_t *itpl) |
| Free resources, which were possibly allocated for cubic spline interpolation. | |
| mirkl_error_t * | mirml_nr_itpl_cspline (mirml_nr_itpl_t *itpl, double x, double *y) |
| Interpolation using cubic spline. | |
| mirkl_error_t * mirml_nr_itpl_cspline | ( | mirml_nr_itpl_t * | itpl, |
| double | x, | ||
| double * | y | ||
| ) |
Interpolation using cubic spline.
| [in] | itpl | Pointer to interpolation structure. |
| [in] | x | Value of argument, in which interpolation should be calculated. |
| [out] | y | Calculated interpolated value on output. |
| void mirml_nr_itpl_free_cspline | ( | mirml_nr_itpl_t * | itpl | ) |
Free resources, which were possibly allocated for cubic spline interpolation.
| mirkl_error_t * mirml_nr_itpl_init_cspline | ( | mirml_nr_itpl_t * | itpl, |
| double * | x, | ||
| double * | y, | ||
| double * | y2, | ||
| int | n, | ||
| double | yp1, | ||
| double | ypn | ||
| ) |
Initialization of cubic spline interpolation.
| [in] | itpl | Pointer to interpolation structure. |
| [in] | x | Array of argument values. |
| [in] | y | Array of function values. |
| [in] | y2 | Preallocated array for second derivatives. The function can automatically allocate the required memory for these values if this argument is NULL. |
| [in] | n | Number of values in x, y and y2 (if y2 is not NULL). |
| [in] | yp1,ypn | First derivatives of the tabulated function in the first and last points, respectively. If yp1 and/or ypn are equal to 1.0e99 or larger, the routine is signaled to set the corresponding boundary condition for a natural spline, with zero second derivative on that boundary. |