REBUILD | R Documentation |
Gives the approximation of a previously analysed tensor using its given decomposition.
REBUILD(solutions,nTens=1:2,testvar=1 ,redundancy=FALSE)
solutions |
a |
nTens |
a vector of identifying positions (numbers given in |
testvar |
control within |
redundancy |
logical to take into account (within |
The function rebuilds the Principal Tensors, i.e. rank-one
tensors of order the order of the tensor analysed, and add them up to
build an approximation of the tensor analysed (according to the
method used see method
). This constitutes a best Least Squares
(ordinary or "weighted" if metrics are used) approximation of
datanam
for a given orthogonal-rank r (number of
principal tensors used), if and only if the singular values used are
the r highest.
A tensor with dimensions as solutions[[k]][["datanam"]]
.
This function can be called for PARAFAC/CANDECOMP
and
PCAn
. A specific rebuilt is implemented for this last one.
Didier G. Leibovici
PTAk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.