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

    function y= PEVForTest(L,TestNumber,X)
%PEVFORTEST Calculate the Predicted Error Variance for a particular test.
% 
%   P = PEVFORTEST( LOCALRESPONSE, TESTNUMBER, X)
%
% See also mbcmodel.localresponse.PredictedValueForTest

%   Copyright 2004-2006 The MathWorks, Inc.
%       .

% get  model
M = LocalModel(L.Object,TestNumber);
if ~isempty(M)
    y= pev(M,X);
else
    error(message('mbc:localresponse:InvalidState'));
end