powered by
This is used for adding singletons to the structure.
fm.add_singletons_sparse(v, envsp=NULL)
The output is added singletons to the structure.
The vector of singletons of size n.
Structure required for sparse representation which stores the relevant values (k-tuples). It is obtained from fm.PrepareSparseFM(n).
Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University
n <- 3 tups<-vector() tupsidx<-vector() envsp <- fm.PrepareSparseFM(n, tups,tupsidx) envsp <- fm.add_singletons_sparse(c(0, 0.3, 0.5),envsp)
Run the code above in your browser using DataLab