Learn R Programming

Rfmtool (version 5.0.3)

fm.get_sizearray_tuples: Function for exporting the size of the array of tuples

Description

Returns the length of the array of tuples.

Usage

fm.get_sizearray_tuples(envsp=NULL)

Value

output

The output is the length of the array of tuples.

Arguments

envsp

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

Author

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

Examples

Run this code
  n <- 3
  envsp <- fm.PrepareSparseFM(n, vector(), vector()) 
  envsp <- fm.add_singletons_sparse(c(0.2,0.1,0.2),envsp) 
  envsp <- fm.add_tuple_sparse(c(1,2,3),0.4,envsp);
  fm.get_sizearray_tuples(envsp)

  envsp <- fm.FreeSparseFM(envsp)

Run the code above in your browser using DataLab