PARAFACPred

Location: ..\cubatch\Model_PARAFAC\PARAFACPred.m

function Predictions = PARAFACPred (X,Model_Parameters,varargin);

Description:
Applies a PARAFAC model to the data contained in X. The model is defined by Model_Parameters.
It is PARAFAC PredFun.


Inputs:
X: double array of data
Model_Parameters: ModelOut.model structure or cell vector of doubles (output of parafac)
varargin: additional inputs for the parafac function (i.e. Options, Constraints, etc); some of these are not available (e.g. the modes not referring to the samples are fixed).

Outputs:
Predictions
: structure with two fields

  1. xfactors, matrix of doubles with the new scores
  2. xpred, predictions for X.
     

Called by:
Model_PARAFAC\PARAFACApply, Model_PARAFAC\PARAFACGNPred, Model_PARAFAC\Calculate, Model_PARAFAC\Plot_D_Statistic, Model_PARAFAC\Plot_Partial_RSS_OnLine

Subroutines:
Internal: None
External: nmodel, parafac

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

Last modified: 08-Oct-2002 16:32:54

Contact: Giorgio Tomasi, gt@kvl.dk

References