Programmer Guide/Command Reference/EVAL/rpolyreg: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
m (1 revision: Initial import) |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
Linear, multivariant and polynominal regression. | |||
---- | |||
;Usage 1: <code>rpolyreg(<var>x</var>, {<var>y</var>})</code>: | |||
:;<var>x</var>: x data vector | |||
:;<var>y</var>: y data vector: <code>''y''[i] = f(''x''[i])</code> | |||
;Result 1: A vector ''r'' with the two linear regression coefficients. | |||
<code>rpolyreg(<var> | :<code>''y''<sub>REG</sub>[i] = ''r''[0] + ''r''[1] * ''x''[i] | ||
---- | |||
;<var> | |||
: | |||
;<var>y</var> | |||
: | |||
: | |||
Revision as of 13:40, 11 April 2011
Linear, multivariant and polynominal regression.
- Usage 1
rpolyreg(x, {y})
:- 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]