Programmer Guide/Command Reference/EVAL/rpolyreg: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 7: Line 7:
:;<var>m</var>: the regression (polynom) order; m>0 (default=1)
:;<var>m</var>: the regression (polynom) order; m>0 (default=1)
;Result 1: A vector ''r'' with the ''m''+1 coefficients or the regression polynom.
;Result 1: A vector ''r'' with the ''m''+1 coefficients or the regression polynom.
::<code>''y''<sub>REG</sub>[i] = ''r''[0] + ''r''[1]*''x''[i] {+ ''r''[2]*''x''[i]^2 + ''r''[''m'']*''x''[i]^''m''}</code>
::<code>''y''<sub>REG</sub>[i] = ''r''[0] + ''r''[1]*''x''[i] {+ ''r''[2]*''x''[i]^2 + .. + ''r''[''m'']*''x''[i]^''m''}</code>
----
----
;See also: [[Programmer_Guide/Command_Reference/EVAL/rpoly|rpoly]], [[Programmer_Guide/Command_Reference/EVAL/interp|interp]]
;See also: [[Programmer_Guide/Command_Reference/EVAL/rpoly|rpoly]], [[Programmer_Guide/Command_Reference/EVAL/interp|interp]]


[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Revision as of 13:53, 11 April 2011

Linear, multivariant and polynominal regression.


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})
m
the regression (polynom) order; m>0 (default=1)
Result 1
A vector r with the m+1 coefficients or the regression polynom.
yREG[i] = r[0] + r[1]*x[i] {+ r[2]*x[i]^2 + .. + r[m]*x[i]^m}

See also
rpoly, interp

<function list>

Navigation menu

Personal tools