OnLineRes
Location: ..\cubatch\Common\OnLineRes.m
function
[SPE,SPElim,Q,Qlim,Scores] = OnLineRes(Pred_Fun,Data,ModelPars,Mode,ConfLim,Limit,Cen,Scal,varargin);
Description:
Compute the Squared Prediction Error and its confidence
limits (if requested), the Q statistics (i.e. the sum of squared
residuals) and its confidence limits (if required) and the scores for the model
associated to Pred_Fun in an on-line fashion. The "Time" mode is by
default the last.
NB This function will likely undergo some simplification of the syntax as many
of the input parameters are contained in the same data structure.
Inputs:
Pred_Fun: function computing the prediction for the desired model.
It can be a string (for MatLab©
5.3 or superior) or
a function handle (for MatLab©
6.x or superior).
Data:
array of doubles with the data used
to compute the statistics
ModelPars: model's parameters as required by Pred_Fun
(i.e. as a structure
ModelOut.model)
Mode: fill in mode
method: 'Current
deviation'/'zero'
ConfLim:
"alpha"s for the confidence intervals (if empty or not given: 95% and 99%).
Limit: compute limits.
Cen,Scal:
preprocessing parameters as contained in Model.xpreproc.
varargin: additional inputs if required by Pred_Fun
Outputs:
SPE: Squared Prediction Error. It has the same
dimensions of Data
SPElim: confidence intervals for SPE
Q: Sum of Squares of the Residuals computed in an online
fashion Data
Qlim: confidence intervals for Q
Scores: scores computed in an online fashion. The time
mode is added as the third (i.e. the Scores is a tridimensional array
where the first mode are the batches, the second hold the various factors/LV and
the last is time).
Called by:
Model_nPLS1\DLims,
Model_PARAFAC\DLims,
Model_nPLS1\Plot_PartialRSS_Online,
Model_PARAFAC\Plot_PartialRSS_Online
Subroutines:
Internal: None
External:
residuals_cl,
NWay\nprocess, NWay\nshapes, Pred_Fun
Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 04-Nov-2002 08:11:30
Contact: Giorgio Tomasi, gt@kvl.dk
References
[1] - Nomikos P., Mac Gregor J.F., "Monitoring batch
process using multiway principal component analysis", AIChE journal, Vol 40,
n°8, 1994, 1361-1373
[2] - van Sprang E.N.M., Ramaker, H., Westerhuis, J.A.,
Gurden S.P., Smilde A.K., "Critical evaluation of approaches for on-line batch
process monitoring", Chemical Engineering Science, Vol 57, 2002, 3979-3991