pe - Prediction errors associated with model and data set

Syntax

e = pe(m,data)
[e,x0] = pe(m,data,init)

Description

data is the output-input data set, given as an iddata object, and m is any idmodel or idnlmodel object. Both time-domain and frequency-domain data are supported, and data can also be an idfrd object.

e is returned as an iddata object, so that e.OutputData contains the prediction errors that result when model m is applied to the data.

The argument init determines how to deal with the initial conditions:

If init is not specified for linear models, its value is determined, as follows:

If init is not specified for idnlgrey models, init = 'Model' is the default. The values and their estimation behavior are inherited from m.InitialStates.

If init is not specified for idnlarx models, init = 'Estimate' is the default. This corresponds to the first few samples of predicted outputs exactly matching the first few output samples in the data set.

If init is not specified for idnlhw models, init = 'Estimate' is the default. This computes initial states by minimizing the prediction errors over the available data range.

The output argument x0 is the value of the initial state used. If data contains several experiments, x0 is a matrix containing the initial states from each experiment.

See Also

compare 
predict 
resid 
sim 
simsd 

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS