smooth
Filter a curve using Savitzky-Golay, moving average, or binomial methods to create a new column with reduced noise.
Instructions
Smooth a curve into a new column.
Args: method: savitzky_golay (sg), adjacent (moving average), or binomial window: number of points in the smoothing window (odd, default 5)
Returns: Success message naming the new smoothed column
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": {
"data_book": "<data_book>",
"data_sheet": "<data_sheet>",
"x_col": "<x_col>",
"y_col": "<y_col>"
},
"name": "smooth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_book | Yes | ||
| data_sheet | Yes | ||
| x_col | Yes | ||
| y_col | Yes | ||
| method | No | savitzky_golay | |
| window | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |