cube_3d {cardinalR}R Documentation

Generate a 3D cube with optional noise.

Description

This function generates a 3D cube along with optional noise.

Usage

cube_3d(num_dims, num_noise, min_n, max_n)

Arguments

num_dims

Number of effective dimensions (default is 3 for a 3D cube).

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 list containing the generated data matrix and the sample size.

Examples

set.seed(20240412)
cube_3d(num_dims = 3, num_noise = 2, min_n = -0.01, max_n = 0.01)


[Package cardinalR version 0.1.1 Index]