System Identification Toolbox | ![]() ![]() |
Select model order (structure).
Syntax
Description
selstruc
is a function to help choose a model structure (order) from the information contained in the matrix v
obtained as the output from arxstruc
or ivstruc
.
The default value of c
is 'plot'
. The plot shows the percentage of the output variance that is not explained by the model, as a function of the number of parameters used. Each value shows the best fit for that number of parameters. By clicking in the plot you can examine which orders are of interest. By clicking on `Select' the variable nn
is returned in the workspace as the optimal model structure for your choice of number of parameters. Several choices can be made.
c = 'aic'
gives no plots, but returns in nn
the structure that minimizes Akaike's Information Criterion (AIC),
where V is the loss function, d is the total number of parameters in the structure in question, and N is the number of data points used for the estimation.
c = 'mdl'
returns in nn
the structure that minimizes Rissanen's Minimum Description Length (MDL) criterion.
When c
equals a numerical value, the structure that minimizes
The output argument vmod
has the same format as v
, but it contains the logarithms of the accordingly modified criteria.
Example
V = arxstruc(data(1:200),data(201:400),struc(1:10,1:10,1:10)) nn = selstruc(V,0); %best fit to validation data m = arx(data,nn)
![]() | segment | set | ![]() |