gen_gaussian | R Documentation |
This function generates a dataset representing a structure with a Gaussian.
gen_gaussian(n = 500, p = 4, s = diag(p) * 0.01)
n |
A numeric value (default: 500) representing the sample size. |
p |
A numeric value (default: 4) representing the number of dimensions. |
s |
A numeric matrix (default: diag(4) * 0.01) representing the variance of along each dimension. |
A data containing a Gaussian.
set.seed(20240412)
gaussian <- gen_gaussian(n = 500, p = 4, s = diag(4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.