LinearFit.opCall

Compute the regression coefficients and create a best-fit line, where x is the independent variable and y is the dependent variable. lowerLim and upperLim control how far the best-fit line is extended in each direction along the X-axis. By default the line is extended between the minimum and maximum values of x.

class LinearFit
static
opCall
(
R1
R2
)
(
R1 x
,
R2 y
,
double lower = double.nan
,
double upper = double.nan
)
if (
isInputRange!R1 &&
is(ElementType!R1 : double)
&&
isInputRange!R2
&&
is(ElementType!R2 : double)
)

Meta