infer_table_relation
Infer proportional column relations (B ≈ A × k) in numeric tables, find baseline anchor and coefficients, and flag deviating rows. Use to reverse-engineer derived formula structures.
Instructions
表内列间派生关系推断(确定性拟合):判断「B 列 ≈ A 列 × k」的系数关系并标出偏离行(取整容限内免误报),或对整表数值列两两配对、自动发现基准锚点列与各列系数。还原「各装备属性 = 基准 × 装备系数」这类生成结构时用;发现系数后可与系数表(如 read_table 装备划分)对照确认同源性。列内时序规律(随行序怎么走)用 infer_column_rule,本工具管列与列的结构。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | 目标表名(来自 list_tables) | |
| columns | No | 参与列。恰 2 列时输出该对的详细关系;多列为子集两两;缺省为全表数值列自动两两 | |
| thresholdPct | No | 相对容差百分比(默认 1,与取整容限取大) |