linear_regression¶
-
seas.signalanalysis.linear_regression(time: numpy.ndarray, signal: numpy.ndarray, verbose=True) → Tuple[float, float][source]¶ Applies a linear regression to the time-series signal.
- Parameters
time – The time, or x axis to fit the linear regression to.
signal – The signal, or y axis to fit the linear regression to.
verbose – Whether to print a verbose output specifying the fit results.
- Returns
The linear regression slope. intercept: The linear regression intercept.
- Return type
slope