gen_bkg_noise {cardinalR}R Documentation

Generate Background Noise Data

Description

This function generates background noise data with specified parameters such as the number of samples, number of dimensions, mean, and standard deviation.

Usage

gen_bkg_noise(n, num_dims, mean, sd)

Arguments

n

Number of samples to generate.

num_dims

Number of dimensions (columns) of the data.

mean

Mean of the normal distribution used to generate noise (default is 0).

sd

Standard deviation of the normal distribution used to generate noise (default is 1).

Value

A matrix containing the generated background noise data, with n rows and num_dims columns.

Examples


# Generate background noise with custom mean and standard deviation
set.seed(20240412)
gen_bkg_noise(n = 50, num_dims = 3, mean = 5, sd = 2)


[Package cardinalR version 0.1.1 Index]