fm.populate_fm_2add_sparse_from2add | R Documentation |
Given 2-additive capacity singletons+pairs in one array v , selects nonzero pairs and populates sparse capacity envsp
fm.populate_fm_2add_sparse_from2add(n, v, envsp=NULL)
n |
Number of inputs |
v |
Pairs in one array v |
envsp |
Structure required for sparse representation which stores the relevant values (k-tuples). It is obtained from fm.PrepareSparseFM(n). |
output |
The output is a nonzero pairs and populates sparse capacity envsp |
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_from2add(3,c(0.4,0.5,0.6, 0, 0, 0.1),envsp) envsp envsp <- fm.FreeSparseFM(envsp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.