Skip to main content
POST
Nonlinear Least Squares Fitting

Authorizations

X-API-Key
string
header
required

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

Body

application/json
model
enum<string>
required

Model type to fit

Available options:
exponential_fit,
polynomial_fit
Example:

"exponential_fit"

x_data
number[]
required

X coordinates of data points

Example:
y_data
number[]
required

Y coordinates of data points (observations to fit)

Example:
x0
number[]
required

Initial guess for model parameters (exponential: [a,b,c], polynomial: [p0,p1,p2,...])

Example:

Response

Successful Response

success
boolean
Example:

true

data
object