# Shape-Preserving PCHIP Hermite Interpolation (Value + Derivative)

> Shape-Preserving PCHIP Hermite Interpolation (Value + Derivative) is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-01).

Interpolates sampled technical profiles at arbitrary query points using shape-preserving Piecewise Cubic Hermite Interpolating Polynomials (PCHIP), returning both values and derivatives while preserving monotonic segments.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B003/shape-preserving-pchip-hermite-value-derivative-samples?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shape-preserving-pchip-hermite-interpolation-value-derivative-4397c786
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8Xx8eNRT74LjikqNkN0Kw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability shape-preserving-pchip-hermite-interpolation-value-derivative-4397c786 -d '<json body>'
```

Example prompt: Interpolate my sampled depth profile using shape-preserving PCHIP — my knot positions are [0, 1, 2, 5, 10], knot values are [0.0, 1.2, 1.8, 1.8, 3.5], and I need both the interpolated values and derivatives at query points [0.5, 1.5, 3.0, 7.0].

## When to prefer this

Choose this endpoint when you need shape-preserving cubic interpolation that avoids the oscillations of standard cubic splines, especially for monotone or near-monotone technical profiles such as geophysical logs, sensor time series, or industrial measurement curves. It is preferable over linear interpolation when smooth derivatives are needed, and over natural cubic splines when preserving local monotonicity is critical.

## Known failure modes

- Knots array and values array length mismatch — validation error returned
- Query points outside the knot range may extrapolate or error depending on implementation
- Fewer than 2 knots provided — schema minimum violation
- More than 32 knots or 64 query points — schema maximum violation
- Knot values out of [-1000000, 1000000] range — rejected by schema
- Non-monotone knot positions may cause undefined interpolation behavior

## How this service works

Interpolate sampled technical profiles while preserving monotonic segments.

## Output

Returns interpolated values and first derivatives at each specified query point, computed via shape-preserving PCHIP, ensuring no spurious oscillations are introduced and monotonic segments in the input data remain monotonic in the output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "pchip"
   ],
   "properties": {
    "pchip": {
     "type": "object",
     "required": [
      "data",
      "claim"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "knots",
        "values",
        "queries"
       ],
       "properties": {
        "knots": {
         "type": "array",
         "items": {
          "type": "number",
          "maximum": 1000000,
          "minimum": -1000000
         },
         "maxItems": 32,
         "minItems": 2
        },
        "values": {
         "type": "array",
         "items": {
          "type": "number",
          "maximum": 1000000,
          "minimum": -1000000
         },
         "maxItems": 32,
         "minItems": 2
        },
        "queries": {
         "type": "array",
         "items": {
          "type": "number",
          "maximum": 1000000,
          "minimum": -1000000
         },
         "maxItems": 64,
         "minItems": 1
        }
       },
       "additionalProperties": false
      },
      "claim": {}
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shape-preserving-pchip-hermite-interpolation-value-derivative-4397c786/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
