2-D Lookup Table
Math2-D Lookup Table 模块通过预定义网格数据点内的双线性插值(bilinear interpolation),将两个输入值 (x, y) 映射为一个输出值。常用于依赖两个变量的复杂非线性系统建模,例如电机效率特性图(MAP 图)、空气动力学阻力系数或多维传感器校准。
输入与输出
| Direction | ID | Label | 类型 | Status |
|---|---|---|---|---|
| → In | in1 |
x | number | Required |
| → In | in2 |
y | number | Required |
| ← Out | out |
Out | number | Output |
参数
| 参数 | Label | 类型 | 默认值 | 描述 |
|---|---|---|---|---|
xBreakpoints |
X Breakpoints | text | 0 1 |
|
yBreakpoints |
Y Breakpoints | hidden | 0 1 |
|
tableData |
Table Data (row-major) | hidden | 0 1 1 2 |
|
interpolation |
Interpolation | select | linear |
|
extrapolation |
Extrapolation | select | linear |
使用示例
效率特性图 (Efficiency Map)
映射 转速(x)与 转矩(y)以确定电机的 效率(z)。
说明与最佳实践
xBreakpoints与yBreakpoints必须严格单调递增。- 若断点维度与
tableData的元素个数不匹配,将导致配置错误或输出 NaN。 - 表格网格边界内部的插值始终为双线性插值。
相关模块
- LookupTable:用于一维数据查找映射。
- MathFunction:用于标准解析数学非线性函数。