Scalar FunctionsSeries Functions
series_fit_2lines
Fit two lines (piecewise linear) to the series. Returns [rsquare, split_idx, left_rsquare, left_slope, left_intercept, right_rsquare, right_slope, right_intercept, fitted_series].
Syntax
series_fit_2lines(series)Parameters
Prop
Type
Returns: dynamic
Examples
Example 1
print series_fit_2lines(dynamic([5, 6, 7, 8, 8, 8, 8, 8]))| print_0_rsquare (real) | print_0_split_idx (long) | print_0_left_rsquare (real) | print_0_left_slope (real) | print_0_left_intercept (real) | print_0_right_rsquare (real) | print_0_right_slope (real) | print_0_right_intercept (real) | print_0_line_fit (dynamic) |
|---|---|---|---|---|---|---|---|---|
| 1.0 | 3 | 1.0 | 1.0 | 5.0 | 1.0 | 0.0 | 8.0 | [5.0,6.0,7.0,8.0,8.0,8.0,8.0,8.0] |