rpolyreg

From STX Wiki
Jump to navigationJump to search

Linear, multivariant and polynominal regression.


Usage 1
rpolyreg(xvector, yvector):
x
x data vector
y
y data vector: y[i] = f(x[i])
Result 1
A vector r with the two linear regression coefficients.
yREG[i] = r[0] + r[1] * x[i]

Usage 1
rpolyreg(xvector, yvector, m):
x
x data vector
y
y data vector: y[i] = f(x[i], x[i]^2, .., x[i]^m)
Result 1
A vector r with the two linear regression coefficients.
yREG[i] = r[0] + r[1] * x[i]

Navigation menu

Personal tools