Estimate parameters of ARX or AR model using least squares
sys = arx(data,[na
nb nk])
sys = arx(data,[na
nb nk],Name,Value)
sys = arx(data,[na
nb nk],___,opt)
arx does not support continuous-time estimations.
Use tfest instead.
returns an ARX structure polynomial
model, sys = arx(data,[na
nb nk])sys, with estimated parameters and covariances
(parameter uncertainties) using the least-squares method and specified orders.
estimates
a polynomial model with additional options specified by one or more sys = arx(data,[na
nb nk],Name,Value)Name,Value pair
arguments.
specifies
estimation options that configure the estimation objective, initial
conditions and handle input/output data offsets.sys = arx(data,[na
nb nk],___,opt)
|
Estimation data. Specify |
|
Polynomial orders.
|
|
Estimation options.
Use |
Specify optional
comma-separated pairs of Name,Value arguments. Name is
the argument name and Value is the corresponding value.
Name must appear inside single quotes (' '). You can
specify several name and value pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
|
Input delays. For a system with Default: 0 for all input channels |
|
Transport delays. Specify transport delays as integers denoting delay of a multiple
of the sample time, For a MIMO system with Default: 0 for all input/output pairs |
|
Specify integrators in the noise channels. Adding an integrator creates an ARIX model represented by: where, is the integrator in the noise channel, e(t).
Default: |
|
ARX model that fits the estimation data, returned as a discrete-time Information about the estimation results and options used is
stored in the
For more information on using |
QR factorization solves the overdetermined set of linear equations that constitute the least-squares estimation problem.
Without regularization, the ARX model parameters vector θ is estimated by solving the normal equation:
where J is the regressor matrix and y is the measured output. Therefore,
.
Using regularization adds a regularization term:
where, λ and R are the regularization constants. See arxOptions for more information on the
regularization constants.
When the regression matrix is larger than the MaxSize specified
in arxOptions, data is segmented
and QR factorization is performed iteratively on these data segments.