2.1.18.17 ocmath_renka_cline_struct_free


Description

This function free the memory allocated by ocmath_renka_cline_interpolation().

Syntax

int ocmath_renka_cline_struct_free( ocmath_RenkaCline_Struct * comm )

Parameters

comm
[input] the structure computed from ocmath_renka_cline_interpolation()

Return

0 for success, otherwise other ERROR_CODE.

Examples

EX1

#include <wks2mat.h>
void ocmath_renka_cline_struct_free_ex1()
{
    vector vX = { 1.7, 2.1, 3.9, 7.2, 8.6, 8.5, 7.3, 5.1, 2.8, 1.8, 1.7 };
    vector vY = { 3.2, 3.9, 4.9, 5.3, 5.5, 6.2, 6.5, 6.9, 7.5, 8.3, 9.4 }; 
    vector vZ = { 3.2, 3.9, 4.9, 5.3, 5.5, 6.2, 6.5, 6.9, 7.5, 8.3, 9.4 }; 
        
    ocmath_RenkaCline_Struct comm;
    ocmath_renka_cline_interpolation(vX.GetSize(), vX, vY, vZ, &comm);//Get comm from ocmath_renka_cline_interpolation
    int iRet = ocmath_renka_cline_struct_free(&comm);    
    out_int("iRet=", iRet);
}

Remark

See Also

ocmath_renka_cline_interpolation

Header to Included

wks2mat.h

Reference