www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@model/PEV.m

    function y = PEV(obj, X)
%PEV    Calculate the Predicted Error Variance at specified inputs.
% 
%   P = PEV( M )
%   P = PEV( M, X )
%
%   See also mbcmodel.model.PredictedValue, mbcmodel.model.Evaluate

%   Copyright 2004-2007 The MathWorks, Inc.

% Better check that the model is correctly fitted
error( obj.pAssertNotBeingEdited() );
error( obj.pAssertIsFitted('This model is not correctly fitted and so cannot have a predicted error variance') );

if nargin < 2
    X = pGetData(obj);
end

y = pev(obj.Object, X);