fm.PrepareSparseFM {Rfmtool} | R Documentation |
PrepareSparseFM preparation function
Description
This function initialises Sparse representation structure. It is used to allocate storage and later populate these values
Usage
fm.PrepareSparseFM(n, tups, tupsidx)
Arguments
n |
Number of inputs |
tups |
Tuples to be added (can be null vector) |
tupsidx |
Cardinalities and indices (1-based) of the elements of tuples (can be null vector) |
Value
output |
The output allocate storage and later populate these values. envsp |
Author(s)
Gleb Beliakov, Andrei Kelarev, Quan Vu, Daniela L. Calderon, Deakin University
Examples
n<-3
envsp <- fm.PrepareSparseFM(n, vector(), vector())
envsp <- fm.FreeSparseFM(envsp)
envsp <- fm.PrepareSparseFM(n, c(0.2,0.4,0.1), c(2,1,2,2,1,3,3,1,2,3))
envsp
envsp <- fm.FreeSparseFM(envsp)
[Package Rfmtool version 5.0.4 Index]