kml_?_interp_free
Releases interpolation object interp.
Interface Definition
void kml_float_interp_free(kml_float_interp *interp)
void kml_double_interp_free(kml_double_interp *interp);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
interp |
kml_float_interp* / kml_double_interp* |
Pointer to an interpolation object. |
Input |
Dependencies
#include "kipl.h"
Examples
const size_t xSize = 4;
float xArr[4] = {1,1.33,1.67,2};
float* yArr = (float*)malloc(xSize * sizeof(float));
kml_float_interp *interp = kml_float_interp_alloc(kml_float_interp_cspline, xSize);
kml_float_interp_init(interp, xSize, xArr, yArr);
kml_float_interp_free(interp);
Parent topic: interp