View source: R/data_simulator.R
multivarGaussian | R Documentation |
Simulate multivariate gaussian distribution with some outliers.
multivarGaussian(n, d, out_perc, out_mag, independent = TRUE, cov_scale = 1)
n |
Number of points |
d |
Number of dimensions |
out_perc |
The percentage of outliers |
out_mag |
The magnitude of the outliers in terms of the covariance |
independent |
Whether the correlation of points are zero. Default to be true. |
cov_scale |
Constant parameter for setting the covariance of the non-outliers. Default to be 1. |
A list with:
mu - mean vector
sigma - covariance matrix
gauss - matrix of points
outlier - matrix of outliers
simulation <- multivarGaussian(n = 200, d = 3, out_perc = 0.03, out_mag = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.