fm.min_subset_sparse {Rfmtool} | R Documentation |
Minimun of x computation function in sparse representation
Description
Calculates minimum of x with the indices belonging to tuple indexed as S
Usage
fm.min_subset_sparse(x, S, cardS, envsp=NULL)
Arguments
x |
Input vector of size n, containing utility value of input criteria. x is in [0,1]. |
S |
Indices belonging to tuple indexed |
cardS |
Cardinality cardS |
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 the minimum of x with the indices belonging to tuple indexed as S |
Author(s)
Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University
Examples
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.min_subset_sparse(c(0.1,0.05,0.2),0,3,envsp)
envsp <- fm.FreeSparseFM(envsp)
[Package Rfmtool version 5.0.4 Index]