Prediction error for identified model
err = pe(sys,data,K)
err = pe(sys,data,K,opt)
[err,ice,sys_pred]
= pe(___)
pe(sys,data,K,___)
pe(sys,Linespec,data,K,___)
pe(sys1,...,sysN,data,K,___)
pe(sys1,Linespec1,...,sysN,LinespecN,data,K,___)
returns
the err
= pe(sys
,data
,K
)K
-step prediction error for the output of
the identified model sys
. The prediction error
is determined by subtracting the K
-step ahead
predicted response from the measured output. The prediction error
is calculated for the time span covered by data
.
For more information on the computation of predicted response, see predict
.
returns
the prediction error using the option set, err
= pe(sys
,data
,K
,opt
)opt
,
to specify prediction error calculation behavior.
[
also returns the estimated initial conditions, err
,ice
,sys_pred
]
= pe(___)ice
, and a predictor
system, sys_pred
.
pe(
plots
the prediction error. Use with any of the previous input argument
combinations. To change display options in the plot, right-click the
plot to access the context menu. For more details about the menu,
see Tips.sys
,data
,K
,___)
pe(
uses sys
,Linespec
,data
,K
,___)Linespec
to
specify the line type, marker symbol, and color.
pe(sys1,...,sysN,
plots
the prediction errors for multiple identified models. data
,K
,___)pe
automatically
chooses colors and line styles.
pe(sys1,Linespec1,...,sysN,LinespecN,
uses the line type, marker symbol, and color specified for each model.data
,K
,___)
|
Identified model. |
|
Measured input-output history. If |
|
Prediction horizon. Specify Default: |
|
Prediction options.
|
|
Line style, marker, and color Line style, marker, and color, specified as a character vector.
For example, For more information about configuring |
|
Prediction error.
Outputs up to the time When For multi-experiment data, |
|
Estimated initial conditions.
|
|
Predictor system.
For discrete-time data, For multi-experiment data, |
Right-clicking the plot of the prediction error opens the context menu, where you can access the following options:
Systems — Select systems to view prediction error. By default, the prediction error of all systems is plotted.
Data Experiment — For multi-experiment data only. Toggle between data from different experiments.
Characteristics — View the following data characteristics:
Peak Value — View the absolute peak value of the data. Applicable for time–domain data only.
Peak Response — View peak response of the data. Applicable for frequency–response data only.
Mean Value — View mean value of the data. Applicable for time–domain data only.
Show — For frequency–domain and frequency–response data only.
Magnitude — View magnitude of frequency response of the system.
Phase — View phase of frequency response of the system.
Show Validation Data — Plot data used to compute the prediction error.
I/O Grouping — For datasets containing more than one input or output channel. Select grouping of input and output channels on the plot.
None — Plot input-output channels in their own separate axes.
All — Group all input channels together and all output channels together.
I/O Selector — For datasets containing more than one input or output channel. Select a subset of the input and output channels to plot. By default, all output channels are plotted.
Grid — Add grids to the plot.
Normalize — Normalize the y-scale of all data in the plot.
Full View — Return to full view. By default, the plot is scaled to full view.
Prediction Horizon — Set the prediction horizon, or choose simulation.
Initial Condition — Specify handling of initial conditions. Not applicable for frequency-response data.
Specify as one of the following:
Estimate — Treat the initial conditions as estimation parameters.
Zero — Set all initial conditions to zero.
Absorb delays and estimate — Absorb nonzero delays into the model coefficients and treat the initial conditions as estimation parameters. Use this option for discrete-time models only.
Predicted Response Plot — Plot the predicted model response.
Prediction Error Plot — Plot the error between the model response and prediction data. By default, the error plot is shown.
Properties — Open the Property Editor dialog box to customize plot attributes.