IMSL C# Numerical Library

LinearRegression.Update Method (Double[], Double, Double)

Updates the regression object with a new observation and weight.

public void Update(
   double[] x,
   double y,
   double w
);

Parameters

x
A double array containing the independent (explanatory) variables.
y
A double representing the dependent (response) variable.
w
A double representing the weight.

Remarks

x.length must be equal to the number of variables set in the constructor.

See Also

LinearRegression Class | Imsl.Stat Namespace | LinearRegression.Update Overload List