View source: R/distributions.R
Generate normally distributed feature samples for a binary classification problem
1 | new_sample_mvn(n, mu_0, sigma_0, mu_1, sigma_1, p_0)
|
n |
integer: the size of the sample |
sigma_0 |
matrix: the 2x2 covariance matrix of the first class |
sigma_1 |
matrix: the 2x2 covariance matrix of the second class |
p_0 |
double: the prior probability of class 0 |
mean_0 |
vector: the mean vector of the first class |
mean_1 |
vector: the mean vector of the second class |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.