fm.add_singletons_sparse: Function for adding singletons to the sparse fuzzy measure

View source: R/Rfmtool.r

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

Rfmtool documentation built on Feb. 16, 2023, 9:21 p.m.