powered by
This is used for populating capacities which Add a tuple of size tupsize to the structure whose Indices are 1-based in tuple.
For populating capacities, adds a whose 1-based indices are in tuple
fm.add_tuple_sparse( tuple, v, envsp=NULL)
The output is adding a tuple of size tupsize
Collection of objects. It is a list of cardinalities of the nonzero tuples (cardinality, tuple composition)
The value of the tuple to be added
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 <- 4 tups<-vector() tupsidx<-vector() envsp <- fm.PrepareSparseFM(n, tups,tupsidx) envsp <- fm.add_tuple_sparse(c(1,2,3),0.2,envsp) envsp <- fm.add_tuple_sparse(c(1,3,4),0.3,envsp)
Run the code above in your browser using DataLab