spiral_3d: Generate a spiral dataset with optional noise.

View source: R/highd_obj.R

spiral_3dR Documentation

Generate a spiral dataset with optional noise.

Description

This function generates a dataset arranged in a spiral pattern with optional noise.

Usage

spiral_3d(n, num_dims, num_noise, min_n, max_n)

Arguments

n

Total number of data points to generate.

num_dims

Number of effective dimensions for each data point.

num_noise

Number of additional noise dimensions to add to the data.

min_n

Minimum value for the noise added to the data.

max_n

Maximum value for the noise added to the data.

Value

A matrix containing the generated data points with or without added noise.

Examples

set.seed(20240412)
spiral_3d(n = 100, num_dims = 10, num_noise = 2, min_n = -0.05, max_n = 0.05)


cardinalR documentation built on May 29, 2024, 4:37 a.m.