curve_fit
Fit a nonlinear model to data using least squares to estimate parameters from observed x and y values.
Instructions
Fit a nonlinear model to data with least squares.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"x_data": "<x_data>",
"y_data": "<y_data>"
},
"name": "curve_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| x_data | Yes | ||
| y_data | Yes | ||
| parameters | No | ||
| p0 | No | ||
| sigma | No | ||
| absolute_sigma | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||