Method | Description | |
---|---|---|
Compute ( int polynomialOrder, IEnumerable |
Computes linear regression over given values.
|
|
LeastSquares ( double zValues, double xValues, double yValues, double &a, double &b, double &c ) : void |
Uses least squares linear regression to estimate the coefficients a, b, and c from the given (x,y,z) data points for the equation z = a + bx + cy.
|
Method | Description | |
---|---|---|
Compute ( int polynomialOrder, IList |
public static Compute ( int polynomialOrder, IEnumerable |
||
polynomialOrder | int | An |
values | IEnumerable |
A list of values. |
return | double[] |
public static LeastSquares ( double zValues, double xValues, double yValues, double &a, double &b, double &c ) : void | ||
zValues | double | z-value array |
xValues | double | x-value array |
yValues | double | y-value array |
a | double | the out a coefficient |
b | double | the out b coefficient |
c | double | the out c coefficient |
return | void |