PARAFACGNPred

Location: ..\cubatch\Model_PARAFAC\PARAFACGNPred.m

function Predictions = PARAFACGNPred (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
when this model is computed using a GN function.
NB. Currently it produces results identical from those obtained with PARAFACPred.

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\Calculate


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: 12-Jun-2002 00:21:42

Contact: Giorgio Tomasi, gt@kvl.dk

References