Learn R Programming

Rfmtool (version 5.0.3)

fm.add_singletons_sparse: 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)

Value

output

The output is added singletons to the structure.

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).

Author

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

Examples

Run this code
  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