Learn R Programming

Rfmtool (version 5.0.3)

fm.tuple_cardinality_sparse: Tuple cardinality

Description

Returns the cardinality of the tuple numbered i in the list of tuples.

Usage

fm.tuple_cardinality_sparse(i, envsp = NULL)

Value

output

The output is the cardinality of the tuple numbered i in the list of tuple.

Arguments

i

In the list of tuples.

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, c(0.2,0.4,0.1), c(2,1,2,2,1,3,3,1,2,3)) 
    fm.tuple_cardinality_sparse(0,envsp)
     envsp <- fm.FreeSparseFM(envsp) 
  

Run the code above in your browser using DataLab