LMMC binary real type and arithmetic spelling.
double lmmc_real_t
Public and internal LMMC real type.
void lmmc_interp_pchip_destroy(lmmc_interp_pchip_t *p)
销毁 PCHIP 插值上下文,释放内部分配的所有内存.
lmmc_status_t lmmc_interp_akima_create(const lmmc_real_t *xs, const lmmc_real_t *ys, size_t n, lmmc_interp_akima_t **out)
由节点构造 Akima 局部三次插值.
lmmc_status_t lmmc_interp_cspline_eval(const lmmc_interp_cspline_t *spline, lmmc_real_t query_x, lmmc_real_t *out_y)
在样条上求值.
lmmc_status_t lmmc_interp_cspline_create(const lmmc_real_t *xs, const lmmc_real_t *ys, size_t n, lmmc_interp_cspline_t **out_spline)
由节点构造自然三次样条.
lmmc_status_t lmmc_interp_lagrange_eval(const lmmc_interp_lagrange_t *lagrange, lmmc_real_t query_x, lmmc_real_t *out_y)
在 Lagrange 插值多项式上求值.
lmmc_spline_bc_t
样条边界条件类型.
void lmmc_interp_akima_destroy(lmmc_interp_akima_t *a)
销毁 Akima 插值上下文,释放内部分配的所有内存.
lmmc_status_t lmmc_interp_pchip_create(const lmmc_real_t *xs, const lmmc_real_t *ys, size_t n, lmmc_interp_pchip_t **out)
由节点构造 PCHIP 单调三次插值.
lmmc_status_t lmmc_interp_pchip_eval(const lmmc_interp_pchip_t *p, lmmc_real_t x, lmmc_real_t *out_y)
在 PCHIP 插值上求值.
lmmc_status_t lmmc_interp_cspline_create_ex(const lmmc_real_t *xs, const lmmc_real_t *ys, size_t n, lmmc_spline_bc_t bc, lmmc_real_t deriv_left, lmmc_real_t deriv_right, lmmc_interp_cspline_t **out_spline)
由节点构造带指定边界条件的三次样条.
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)
双三次插值(矩形网格).
void lmmc_interp_lagrange_destroy(lmmc_interp_lagrange_t *lagrange)
销毁 Lagrange 插值上下文.
lmmc_status_t lmmc_interp_akima_eval(const lmmc_interp_akima_t *a, lmmc_real_t x, lmmc_real_t *out_y)
在 Akima 插值上求值.
lmmc_status_t lmmc_interp_linear(const lmmc_real_t *xs, const lmmc_real_t *ys, size_t n, lmmc_real_t query_x, lmmc_real_t *out_y)
在节点 (xs[i], ys[i]) 间做分段线性插值.
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)
双线性插值(矩形网格).
void lmmc_interp_cspline_destroy(lmmc_interp_cspline_t *spline)
销毁三次样条上下文,释放内部分配的所有内存.
lmmc_status_t lmmc_interp_lagrange_create(const lmmc_real_t *xs, const lmmc_real_t *ys, size_t n, lmmc_interp_lagrange_t **out_lagrange)
由节点构造 Lagrange 插值多项式(基于重心权重).
Lagrange 多项式插值上下文(不透明类型).
lmmc_status_t
LMMC 库统一返回的状态码.