fm.add_singletons_sparse {Rfmtool}R Documentation

Function for adding singletons to the sparse fuzzy measure

Description

This is used for adding singletons to the structure.

Usage

  fm.add_singletons_sparse(v, envsp=NULL)

Arguments

v

The vector of singletons of size n.

envsp

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

Value

output

The output is added singletons to the structure.

Author(s)

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

Examples

  n <- 3
  tups<-vector()
  tupsidx<-vector()
  envsp <- fm.PrepareSparseFM(n, tups,tupsidx) 

 envsp <- fm.add_singletons_sparse(c(0, 0.3, 0.5),envsp)
  

[Package Rfmtool version 5.0.4 Index]