View source: R/distributions.R
Construct a dataframe with posterior class probabilities and the optimal decision boundary over a grid on the feature space
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | new_density_mix(
mu_0,
sigma_0,
w_0,
mu_1,
sigma_1,
w_1,
p_0,
x_min,
x_max,
y_min,
y_max,
delta = 0.05
)
|
mu_0 |
numeric: the average mean of the components of the first feature |
sigma_0 |
matrix: covariance of components of the first feature |
w_0 |
numeric: vector of weights for components of the first feature |
mu_1 |
numeric: the average mean of the components of the second feature |
sigma_1 |
matrix: covariance of components of the second feature |
w_1 |
numeric: vector of weights for components of the second feature |
p_0 |
double: the prior probability of class 0 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.