Rate This Document
Findability
Accuracy
Completeness
Readability

kml_?_spline_free

Release interpolation object spline.

Interface Definition

void kml_float_spline_free(kml_float_spline *spline)

void kml_double_spline_free(kml_double_spline *spline);

Parameters

Parameter

Type

Description

Input/Output

spline

kml_float_spline* / kml_double_spline*

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_spline *spline = kml_float_spline_alloc(kml_float_interp_cspline, xSize);
kml_float_spline_init(spline, xSize, xArr, yArr);
kml_float_spline_free(spline);