Plot_D_Statistic

Location: ..\cubatch\Model_PARAFAC\private\Plot_D_Statistic.m

function [Axes,MO] = Plot_D_Statistic (PlotStruct,ModelOut,MainFig);

Description:
Plots the D statistics for the selected sample/batches in the
'offline' mode and the D statistics vs time (i.e. the scalars in the last mode) for the selected sample/batch in the 'online' mode. The mode is based on the 'userdata' of the calling menu: 'on' for 'online' and 'off' for 'offline'.
The values are computed by means of
DLims if they where not originally present and saved in ModelOut.model.stats.d_on, and ModelOut.model.stats.d_off.
When the model has been applied to new data this plot automatically applies to the new data.
For the axes specified by Axes the 'ModelOut' application-defined data is set, and it contains a copy of ModelOut.(employed by PARAFACDisplayInfo)

Inputs:
PlotStruct: PlotStruct structure
ModelOut: ModelOut structure for the current model
MainFig: main figure handle

Outputs:
Axes: handle of the axes where the D-statistics are plot
MO: ModelOut structure with the updated statistic. Empty if no new statistic was computed.

Called by:
Model_PARAFAC\PARAFACActivatePlots
NB. The actual call is made from PARAFACPlot via feval and not from Model_PARAFAC\PARAFACActivatePlots.


Subroutines:
Internal: None
External: dlims, parafacpred, selectmodel

Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark

Last modified: 05-Nov-2002 09:14:58

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