fm.expand_sparse_full {Rfmtool}R Documentation

Function for exporting full capacity from sparse representation

Description

Exports from sparse to full capacity.

Usage

  fm.expand_sparse_full(n, envsp=NULL)

Arguments

n

Number of inputs.

envsp

Structure required for sparse representation which stores the relevant values (k-tuples). It is obtained from fm.PrepareSparseFM(n).

Value

output

Exports from sparse to full capacity.

Author(s)

Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University

Examples

  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);

  cap <- fm.expand_sparse_full(n, envsp)
  cap 

  envsp <- fm.FreeSparseFM(envsp)
  

[Package Rfmtool version 5.0.4 Index]