fm.populate_fm_2add_sparse | R Documentation |
Populate 2-additive sparse capacity with nonzero values using the singletons and two arrays of indices (of size numpairs).
fm.populate_fm_2add_sparse(singletons, numpairs, pairs, indicesp1, indicesp2, envsp)
singletons |
Singletons 0-based. |
numpairs |
Size numpairs. |
pairs |
Array 0-based. |
indicesp1 |
Array of indices of Size numpairs.need to be 1-based. |
indicesp2 |
Array of indices of Size numpairs.need to be 1-based. |
envsp |
Structure required for sparse representation which stores the relevant values (k-tuples). It is obtained from fm.PrepareSparseFM(n). |
output |
The output is Populate 2-additive sparse capacity with nonzero values using the singletons and two arrays of indices (of size numpairs) |
Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University
n <- 3 envsp <- fm.PrepareSparseFM(n, vector(), vector()) envsp <- fm.populate_fm_2add_sparse(c(0.1,0.2,0.3), 3, c(0.4,0.5,0.6), c(1,1,2), c(2,3,3), envsp) envsp envsp <- fm.FreeSparseFM(envsp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.