Scalar FunctionsSeries Functions
series_fit_line
Fit a line to the series using linear regression.
Returns [rsquare, slope, variance, rvariance, intercept, fitted_series]. An absent element (null) makes the result null.
Syntax
series_fit_line(series)Parameters
Prop
Type
Returns: dynamic
Examples
Example 1
print series_fit_line(dynamic([10, 20, 30, 40, 50]))| print_0_rsquare (real) | print_0_slope (real) | print_0_variance (real) | print_0_rvariance (real) | print_0_intercept (real) | print_0_line_fit (dynamic) |
|---|---|---|---|---|---|
| 1.0 | 10.0 | 250.0 | 0.0 | 10.0 | [10.0,20.0,30.0,40.0,50.0] |
series_fit_2lines_dynamic
Piecewise-linear best fit of a numeric series with change-point search.
series_fit_line_dynamic
Closed-form ordinary-least-squares fit of a numeric series, returned as a property bag shaped like Microsoft Kusto's output: ``` { slope, interception, rsquare, variance, rvariance, line_fit: [...] } ```.