www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@response/PEV.m
function y = PEV(R,X) %PEV Calculate the Predicted Error Variance % % P = PEV( RESPONSE, X); % % See also mbcmodel.response.PredictedValue % Copyright 2004-2006 The MathWorks, Inc. mdev = R.Object; % Better check that the model is correctly fitted if status(mdev) == 0 error(message('mbc:mbcmodel:response:InvalidState1')); end if nargin < 2 [X, Y, OK] = FitData(mdev); X = double(X(OK, :)); end % get model M = model(mdev); y = pev(M,X);