Decompose a seasonal time series
statistics_time-series-decomposeClassical moving-average additive or multiplicative decomposition into trend, seasonal indices and remainder, with Wang-Smith-Hyndman strength of seasonality and trend measures. STL is not provided. Price $0.03 USDC. POST /api/v1/statistics/time-series-decompose. An unpaid call returns the x402 payment terms and does not run.
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": {
"values": "<values>",
"period": "<period>"
},
"name": "statistics_time-series-decompose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | model, string, one of additive, multiplicative. Required. | additive |
| period | Yes | period, integer, from 2 to 366. Required. | |
| values | Yes | values, array. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | model. String. | |
| trend | No | trend. Array. | |
| period | No | period. Number. | |
| sources | No | sources. Array. | |
| seasonal | No | seasonal. Array. | |
| remainder | No | remainder. Array. | |
| limitations | No | limitations. Array. | |
| trendStrength | No | trendStrength. Number. | |
| seasonalIndices | No | seasonalIndices. Array. | |
| seasonalStrength | No | seasonalStrength. Number. |