diff --git a/docs/en/sql-reference/functions/time-series-functions.md b/docs/en/sql-reference/functions/time-series-functions.md index 2e42aa884b4..21e66302ad2 100644 --- a/docs/en/sql-reference/functions/time-series-functions.md +++ b/docs/en/sql-reference/functions/time-series-functions.md @@ -78,7 +78,7 @@ The number of data points in `series` should be at least twice the value of `per **Returned value** - An array of four arrays where the first array include seasonal components, the second array - trend, -the third array - residue component, and the fourth array - baseline component. +the third array - residue component, and the fourth array - baseline(seasoanl + trend) component. Type: [Array](../../sql-reference/data-types/array.md). diff --git a/src/Functions/seriesDecomposeSTL.cpp b/src/Functions/seriesDecomposeSTL.cpp index 0c44afa32a6..9a6a229e282 100644 --- a/src/Functions/seriesDecomposeSTL.cpp +++ b/src/Functions/seriesDecomposeSTL.cpp @@ -128,7 +128,7 @@ public: res_data.insert(residue.begin(), residue.end()); res_col_offsets_data.push_back(res_data.size()); - // Create Baseline = seasonal + trend + // Create Baseline = seasonal + trend std::transform(seasonal.begin(), seasonal.end(), trend.begin(), std::back_inserter(res_data), std::plus()); res_col_offsets_data.push_back(res_data.size()); @@ -205,7 +205,7 @@ The number of data points in `series` should be at least twice the value of `per **Returned value** -- An array of four arrays where the first array include seasonal components, the second array - trend, the third array - residue component, and the fourth array - baseline component. +- An array of four arrays where the first array include seasonal components, the second array - trend, the third array - residue component, and the fourth array - baseline(seasoanl + trend) component. Type: [Array](../../sql-reference/data-types/array.md).