sl_create_riv: Create random index vectors

Description Usage Arguments Value Examples

View source: R/sl_create_riv.R

Description

Create random index vectors

Usage

1
sl_create_riv(dim, inds, sparsity)

Arguments

dim

integer, number of dimensions (vector length)

inds

integer, number of rows

sparsity

even integer, number of elements in vector

Value

matrix, each row is an item with dim dimensions

Examples

1
2
sl_create_riv(10,5,1)
sl_create(10,5,4)

CrumpLab/RsemanticLibrarian documentation built on Nov. 11, 2019, 1:04 p.m.