Skip to main content
POST
Interpolate Value

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://api.fincept.in/auth/register

Body

application/json
x_data
number[]
required

X coordinates of known data points (must be strictly increasing)

Example:
y_data
number[]
required

Y coordinates of known data points

Example:
xi
number
required

Point at which to interpolate

Example:

1.5

method
enum<string>
default:linear

Interpolation method

Available options:
linear,
cubic,
lagrange,
pchip,
monotone_convex,
cubic_spline
Example:

"cubic_spline"

Response

Successful Response

success
boolean
Example:

true

data
object