Description Usage Arguments Value Author(s) Examples
generates a set of points pairwise-separated by a minimal distance. Is not guaranteed to converge: when maxit is reached, current points are returned.
1 | generateSparsePoints(npoints, dim = 2, span = 10, mindist = 2, maxit = 20)
|
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. |
matrix with well separated elements as its rows.
Pierrick Bruneau
1 | temp <- generateSparsePoints(10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.