This function generates random noise dimensions by adding wavy patterns.
Usage
gen_wavydims2(n = 500, p = 4, x1_vec)
Arguments
- n
A numeric value (default: 500) representing the sample size.
- p
A numeric value (default: 4) representing the number of dimensions.
- x1_vec
A numeric vector representing the first dimension of the data structure.
Value
A data containing the generated random noise dimensions.
Examples
set.seed(20240412)
theta <- seq(0, spins * 2 * pi, length.out = n)
#> Error: object 'n' not found
x1 <- sin(phi) * cos(theta)
#> Error: object 'phi' not found
gen_wavydims2(n = 500, p = 4, x1_vec = x1)
#> Error: object 'x1' not found