generate.subspaces: Random generation of consecutive subspaces

Description Usage Arguments Details Value Author(s) Examples

Description

Random generation of partly overlapping consecutive subspaces with a minimum number of dimensions mindim and a maximum number of dimensions maxdim from a total number of dimensions dim.

Usage

1
2
generate.subspaces(dim = 20, mindim = 2, maxdim = 4,
  allowOverlap = FALSE)

Arguments

dim

Total number of dimensions from which to generate the subspaces.

mindim

Minimum number of dimensions for a subspace.

maxdim

Maximum number of dimensions for a subspace.

allowOverlap

States whether overlap between subspaces are allowed. (might be a bit more complex if TRUE.). Note that full overlap and subset relation are never allowed.

Details

Generate at most round((dim*0.75)/length(mindim:maxdim)/x) subspaces of each size x For example, for generate.subspaces(dim=100, maxdim=5, mindim=2):

Value

A list of partly overlapping subspaces spanning over the dim dimensions

Author(s)

Edouard Fouché, edouard.fouche@kit.edu

Examples

1
subspaces <- generate.subspaces(dim=100, maxdim=5, mindim=2)

edouardfouche/R-streamgenerator documentation built on May 15, 2019, 11:02 p.m.