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

function [A,B,C,errflag,iter] = swatld (X,A0,B0,F,tol,maxiter);
Description:
Fits a PARAFAC model to a three way array via Self-Weighted Alternating Trilinear Decomposition
Inputs:
X: array
A0,B0: initial estimations for the loading matrices A and B (here random matrices)
F: number of components to extract
tol: convergence criterion based on the relative decrease in fit
maxiter: maximum number of iterations.F: Insert description

Outputs:
A,B,C: loading matrices
errflag: indicates normal exit (0) or maximum number of iterations (1)
iter: number of iterations

Called by:
Model_PARAFAC\InitPar
Subroutines:
Internal: None
External: nmodel

Author:
Faber N.M.
...
Modified by:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 09-May-2002 16:30:54
Contact: Giorgio Tomasi, gt@kvl.dk
References
[1] Chen et al. Chemometrics and Intelligent Laboratory Systems, 52 (2000) 75-86.