Description Usage Arguments Value Author(s) Examples
Renormalizes the Tucker3 solution producing a core normalized to unit sum of squares (and compensating the core normalization in the component matrices).
1 | renormsolT3(A, B, C, G, mode)
|
A |
Component matrix for the |
B |
Component matrix for the |
C |
Component matrix for the |
G |
Matricized core array (frontal slices) |
mode |
Renormalization option (1 if renormalization with respect to |
A list including the following components:
A |
Component matrix for the |
B |
Component matrix for the |
C |
Component matrix for the |
H |
Normalized matricized core array (frontal slices) |
Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(Bus)
# labels for Bus data
laba <- rownames(Bus)
labb <- substr(colnames(Bus)[1:5], 1, 1)
labc <- substr(colnames(Bus)[seq(1,ncol(Bus),5)], 3, 8)
# T3 solution
BusT3 <- T3funcrep(Bus, 7, 5, 37, 2, 2, 2, 0, 1e-6)
# sums of squares of A and core
sum(BusT3$A^2)
sum(BusT3$H^2)
# Renormalization with respect to the A-mode
BusT3rA <- renormsolT3(BusT3$A, BusT3$B, BusT3$C, BusT3$H,1)
# sums of squares of A and core after renormalization
sum(BusT3rA$A^2)
sum(BusT3rA$H^2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.