content/flux/v0/stdlib/internal/promql/linearregression.md
promql.linearRegression() implements linear regression functionality required to implement
PromQL's deriv()
and predict_linear() functions.
Important: The internal/promql package is not meant for external use.
(
<-tables: stream[{A with _value: float, _time: time, _stop: time}],
?fromNow: float,
?predict: bool,
) => stream[{B with _value: float}]
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
Input data. Default is piped-forward data (<-).
Output should contain a prediction.
Time as a floating point value.