gen_noise_dims {cardinalR}R Documentation

Generate Random Noise Dimensions

Description

This function generates random noise dimensions to be added to the coordinates of a sphere.

Usage

gen_noise_dims(n, num_noise, min_n, max_n)

Arguments

n

The number of observations for which to generate noise dimensions.

num_noise

The number of noise dimensions to generate.

min_n

The minimum value for the random noise.

max_n

The maximum value for the random noise.

Value

A matrix containing the generated random noise dimensions.

Examples

# Generate random noise dimensions with 3 dimensions, minimum value -1, and maximum value 1
set.seed(20240412)
gen_noise_dims(n = 50, num_noise = 3, min_n = -0.01, max_n = 0.01)


[Package cardinalR version 0.1.1 Index]