make_onegrid | R Documentation |
This function generates a dataset consisting of one grid-like cluster (a structured cube grid) in 2D, with optional Gaussian noise dimensions added to extend the dataset into higher dimensions.
make_onegrid(n = 500, p = 4)
n |
Integer, the number of points in the grid cluster. Must be positive.
Default is |
p |
Integer, the dimensionality of the embedding space. Must be at least 2.
Default is |
A tibble containing the generated dataset with columns:
x1, x2, ..., xp
— coordinates of the data points.
cluster
— cluster assignment (always 1 for the grid).
# Default: 500 points, 4D space (grid in 2D + 2 noise dimensions)
onegrid <- make_onegrid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.