{"uid":"cap_8Xx8eNRT74LjikqNkN0Kw","slug":"shape-preserving-pchip-hermite-interpolation-value-derivative-4397c786","name":"Shape-Preserving PCHIP Hermite Interpolation (Value + Derivative)","description":"Interpolate sampled technical profiles while preserving monotonic segments.","url":"https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B003/shape-preserving-pchip-hermite-value-derivative-samples?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gVTAS-vazjV4G_3Z2H2nK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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].","exampleUseCases":[{"title":"Monotone well-log depth interpolation","prompt":"I have a well-log sampled at depths [0, 50, 100, 200, 500] meters with porosity values [0.35, 0.30, 0.28, 0.25, 0.20] and I need the porosity and its rate of change at every 10 meters from 0 to 500 — use shape-preserving PCHIP so monotone sections stay monotone."},{"title":"Industrial sensor profile smoothing","prompt":"My temperature sensor recorded readings at times [0, 1, 3, 6, 10] seconds with values [20, 45, 60, 60, 80] degrees, and I need the interpolated temperature and its derivative at [0.5, 2.0, 4.5, 8.0] seconds without any ringing or overshoot."},{"title":"Geophysical velocity model evaluation","prompt":"I have a seismic velocity model with knots at depths [0, 500, 1000, 2000, 4000] m and velocities [1500, 1800, 2200, 2800, 3500] m/s — please evaluate both the velocity and velocity gradient using PCHIP at query depths [250, 750, 1500, 3000]."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T00:49:17.738Z","isFirstParty":false,"canonicalSlug":"shape-preserving-pchip-hermite-interpolation-value-derivative-4397c786"}