fold | R Documentation |
X_i_jk => X_i_j_k, X_j_ki => X_i_j_k, X_k_ij => X_i_j_k
fold(X, mode, shape)
X |
Data matrix to fold. |
mode |
Mode of operation. |
shape |
Dimension of original tensor. |
X_i_j_k Three-mode tensor.
X_i_jk = generate_dataset()$X_i_jk X_i_j_k = fold(X_i_jk, mode=1, shape=c(I=8,J=5,K=4)) # X_i_j_k
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.