|
LMMC
Lamina Mathematic core
|
函数 | |
| lmmc_status_t | lmmc_interp_bilinear (const lmmc_real_t *xs, size_t nx, const lmmc_real_t *ys, size_t ny, const lmmc_real_t *zs, lmmc_real_t qx, lmmc_real_t qy, lmmc_real_t *out_z) |
| 双线性插值(矩形网格). | |
| lmmc_status_t | lmmc_interp_bicubic (const lmmc_real_t *xs, size_t nx, const lmmc_real_t *ys, size_t ny, const lmmc_real_t *zs, lmmc_real_t qx, lmmc_real_t qy, lmmc_real_t *out_z) |
| 双三次插值(矩形网格). | |
| lmmc_status_t lmmc_interp_bilinear | ( | const lmmc_real_t * | xs, |
| size_t | nx, | ||
| const lmmc_real_t * | ys, | ||
| size_t | ny, | ||
| const lmmc_real_t * | zs, | ||
| lmmc_real_t | qx, | ||
| lmmc_real_t | qy, | ||
| lmmc_real_t * | out_z ) |
双线性插值(矩形网格).
| [in] | xs | x 方向严格升序节点数组,长度 nx >= 2. |
| [in] | nx | x 方向节点数. |
| [in] | ys | y 方向严格升序节点数组,长度 ny >= 2. |
| [in] | ny | y 方向节点数. |
| [in] | zs | 网格值数组,行优先存储 (nx * ny),zs[i*ny + j] = f(xs[i], ys[j]). |
| [in] | qx | 查询点 x 坐标. |
| [in] | qy | 查询点 y 坐标. |
| [out] | out_z | 输出插值结果. |
在文件 interp_grid.c 第 5 行定义.
引用了 interp_check_grid(), interp_find_interval(), interp_interval_fraction(), lmmc_interp_bilinear(), LMMC_STATUS_INVALID_ARGUMENT, LMMC_STATUS_NUMERICAL_FAILURE , 以及 LMMC_STATUS_OK.
被这些函数引用 lmmc_interp_bilinear().
| lmmc_status_t lmmc_interp_bicubic | ( | const lmmc_real_t * | xs, |
| size_t | nx, | ||
| const lmmc_real_t * | ys, | ||
| size_t | ny, | ||
| const lmmc_real_t * | zs, | ||
| lmmc_real_t | qx, | ||
| lmmc_real_t | qy, | ||
| lmmc_real_t * | out_z ) |
双三次插值(矩形网格).
使用每轴相邻四个实际坐标节点的局部重心 Lagrange 插值的张量积; 支持任意严格升序的非均匀网格,每轴三次以内多项式可精确再现 (浮点舍入误差除外)。边界使用最前/最后四个不同节点。 查询恰好落在节点时直接采用该节点的基函数值。
| [in] | xs | x 方向严格升序节点数组,长度 nx >= 4. |
| [in] | nx | x 方向节点数. |
| [in] | ys | y 方向严格升序节点数组,长度 ny >= 4. |
| [in] | ny | y 方向节点数. |
| [in] | zs | 网格值数组,行优先存储 (nx * ny),zs[i*ny + j] = f(xs[i], ys[j]). |
| [in] | qx | 查询点 x 坐标. |
| [in] | qy | 查询点 y 坐标. |
| [out] | out_z | 输出插值结果. |
在文件 interp_grid.c 第 133 行定义.
引用了 interp_check_grid(), lmmc_interp_bicubic(), LMMC_STATUS_INVALID_ARGUMENT , 以及 LMMC_STATUS_OK.
被这些函数引用 lmmc_interp_bicubic().