fm.populate_fm_2add_sparse_from2add {Rfmtool} | R Documentation |
Function for populating 2-additive sparse capacity from 2-additive capacity
Description
Given 2-additive capacity singletons+pairs in one array v , selects nonzero pairs and populates sparse capacity envsp
Usage
fm.populate_fm_2add_sparse_from2add(n, v, envsp=NULL)
Arguments
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). |
Value
output |
The output is a nonzero pairs and populates sparse capacity envsp |
Author(s)
Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University
Examples
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)
[Package Rfmtool version 5.0.4 Index]