Learn R Programming

cardinalR (version 1.0.6)

gen_noisedims: Generate Random Noise Dimensions

Description

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

Usage

gen_noisedims(n = 500, p = 4, m = rep(0, p), s = rep(2, p))

Value

A data containing the generated random noise dimensions.

Arguments

n

A numeric value (default: 500) representing the sample size.

p

A numeric value (default: 4) representing the number of dimensions.

m

A numeric vector (default: c(0, 0, 0, 0)) representing the mean along each dimensions.

s

A numeric vector (default: c(2, 2, 2, 2)) representing the standard deviation along each dimensions.

Examples

Run this code
set.seed(20240412)
gen_noisedims(n = 500, p = 4, m = c(0, 0, 0, 0), s = c(2, 2, 2, 2))

Run the code above in your browser using DataLab