generateSparsePoints: generateSparsePoints

Description Usage Arguments Value Author(s) Examples

View source: R/Rutils.R

Description

generates a set of points pairwise-separated by a minimal distance. Is not guaranteed to converge: when maxit is reached, current points are returned.

Usage

1
generateSparsePoints(npoints, dim = 2, span = 10, mindist = 2, maxit = 20)

Arguments

npoints

number of points to generate (i.e. in a matrix with elements as rows.

dim

number of variables to generate.

span

[-span, span] is used as bounds to uniform sampling for all variables.

mindist

minimal distance that each element should have with all others. the "control" C routine is used to perform this verification. All points that do not respect this constraint are resampled.

maxit

maximal number of iterations before current elements are returned.

Value

matrix with well separated elements as its rows.

Author(s)

Pierrick Bruneau

Examples

1

VBmix documentation built on May 30, 2017, 2:34 a.m.