Description Usage Arguments Author(s) References Examples

Sample uniformly in or on a hyperspheres or hypercubes.

1 2 3 | ```
runif_cube(n, m = 2, max.dist = 1, at = FALSE, nr.dist = 21)
runif_sphere(n, m = 2, max.radius = sqrt(m), at = FALSE, nr.rad = 21)
``` |

`n` |
number of points to sample |

`m` |
number of design factors |

`max.dist` |
maximum distance from origin (L-infinity norm/supremum distance) for the hypercuboidal design region (enveloping hypercube) |

`at` |
logical indicating whether to sample on concentric hyperspheres/hypercubes or not. With this
option |

`nr.dist` |
the number of concentric hypercubes to use in case at is |

`max.radius` |
maximum radius of the hyperspherical design region (enveloping hypersphere) |

`nr.rad` |
number of concentric hyperspheres to sample on in case of |

Pieter C. Schoonees

Pieter C. Schoonees, Niel J. le Roux, Roelof L.J. Coetzer (2016). Flexible Graphical Assessment of
Experimental Designs in R: The vdg Package. *Journal of Statistical Software*, 74(3), 1-22.
doi: 10.18637/jss.v074.i03.

1 2 3 4 5 6 | ```
set.seed(1234)
runif_sphere(n = 10)
set.seed(1234)
samp <- runif_sphere(n = 500, at = TRUE)
plot(samp, asp = 1)
``` |

vdg documentation built on May 19, 2017, 5:59 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.