plane_2d_hole | R Documentation |
This function generates a dataset representing a 2D plane with a hole in the middle, with added noise.
plane_2d_hole(n, num_noise, min_n, max_n)
n |
The total number of samples to generate. |
num_noise |
The number of additional noise dimensions to add to the data. |
min_n |
The minimum value for the noise dimensions. |
max_n |
The maximum value for the noise dimensions. |
A list containing the 2D plane data with a hole and the sample size.
set.seed(20240412)
plane_data <- plane_2d_hole(
n = 100, num_noise = 2,
min_n = -0.05, max_n = 0.05
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.