fm.expand_2add_full | R Documentation |
From sparse to full representation of 2-additive capacity (singletons and pairs, augmented with 0s).
fm.expand_2add_full(n, envsp=NULL)
n |
Number of inputs |
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 sparse to full representation of 2-additive capacity (singletons and pairs, augmented with 0s) |
Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University
n <- 3 envsp <- fm.PrepareSparseFM(n, vector(), vector()) envsp <- fm.add_singletons_sparse(c(0.2,0.1,0.2),envsp) envsp <- fm.add_pair_sparse(1,2,0.4,envsp); cap2add <- fm.expand_2add_full(n,envsp) cap2add envsp <- fm.FreeSparseFM(envsp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.