math.interpolate_cubic_spline
Interpolate a query x-value from ≥4 strictly increasing Decimal points using a cubic spline with natural, clamped, or not-a-knot boundaries; error for out-of-range queries (no extrapolation).
Instructions
3차 스플라인 보간(scipy CubicSpline)으로 x_query 에서의 값을 구한다. xs 는 엄격히 증가하는 4개 이상의 Decimal 문자열 리스트, ys 는 같은 길이. bc_type 은 natural(기본), clamped, not-a-knot 중 하나. x_query 가 표본 구간 밖이면 외삽하지 않고 오류를 낸다. 유효숫자 12자리.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xs | Yes | ||
| ys | Yes | ||
| bc_type | No | natural | |
| x_query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| result | Yes |