# 2.1.18 Matrix Conversion and Gridding

## Functions

Name Brief Example
ocmath_2d_kriging_grid This function perform random matrix conversion using Kriging algorithm. Examples
ocmath_2d_kriging_scat This function perform 2d surface fitting using Kriging algorithm. Examples
ocmath_convert_regular_xyz_to_matrix This function fill a regular matrix with Zs according to the scatters' x,y values. Examples
ocmath_convert_sparse_xyz_to_matrix This function fill a sparse matrix with Zs according to the scatters' x,y values. Examples
ocmath_d_polygon_reorder This function test or reorder a polygon. Examples
ocmath_find_xy_in_circle find how many and which points in the circle Examples
ocmath_find_xy_in_rect Select given XY array to find all points inside the rectangle defined by XY min max values. Examples
ocmath_gridding_weighted_average Estimate the grid points from neighborhood by weighted average method Examples
ocmath_mat_to_regular_xyz Create XYZ mapping. The returned X, Y vectors are equi-spaced gridding with specified minimum and maximum values. It is assumed that X varies across columns and Y varies across rows. Examples
ocmath_mesh_in_polygon The function generates a triangular mesh of a closed polygonal region. Examples
ocmath_modified_shepard_eval This subroutine computes the value at given points using the modified shepard's method. Examples
ocmath_modified_shepard_interpolant This subroutine generates a two-dimensional surface interpolating a set of scattered data points, using a modification of Shepard's method. Examples
ocmath_modshepard_struct_free This function free the memory allocated by ocmath_modified_shepard_interpolant(). Examples
ocmath_renka_cline_eval This subroutine computes the value at given points using the method of renka and cline. Examples
ocmath_renka_cline_interpolation This subroutine generates a two-dimensional surface interpolating a set of scattered data points, using the method of Renka and Cline. Examples
ocmath_renka_cline_struct_free This function free the memory allocated by ocmath_renka_cline_interpolation(). Examples
ocmath_tps_eval This function evaluate the value of given points using thin plate spline method. Examples
ocmath_tps_fit This function perform 2D interpolation using thin plate spline method. Examples
ocmath_xyz_examine_data This function check the xyz scatters and return the proposed method for converting the XYZ to matrix. Examples
ocmath_xyz_gridding This function do xyz gridding based on input scatters. Examples
ocmath_xyz_remove_duplicates This function remove duplicated points. Examples
ocmath_array_remove_duplicates This function remove duplicated values of an array. Examples
xyz_examine_data Check the xyz scatters and return the proposed method for converting the XYZ to matrix Examples
xyz_remove_duplicates Remove duplicated points. Examples