gen_clusteredspheres | R Documentation |
This function generates a dataset representing a structure with a small and big spheres.
gen_clusteredspheres(
n = c(1000, 100),
k = 3,
p = 4,
r = c(15, 3),
loc = 10/sqrt(3)
)
n |
A numeric vector (default: c(1000, 100)) representing the sample sizes of the big and small spheres respectively. |
k |
A numeric value (default: 3) representing the number of small spheres. |
p |
A numeric value (default: 4) representing the number of dimensions. |
r |
A numeric vector (default: c(15, 3)) representing the radius of the big and small spheres respectively. |
loc |
A numeric value (default: 10 / sqrt(3) representing how far the small spheres are placed from each other. |
A data containing small spheres within a big sphere.
set.seed(20240412)
clusteredspheres <- gen_clusteredspheres(n = c(1000, 100), k = 3, p = 4,
r = c(15, 3), loc = 10 / sqrt(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.