View source: R/distributions.R
Make an optimal prediction at a point from two class distributions
1 | optimal_predict(xy, p_0, dfun_0, dfun_1)
|
xy |
vector: 2D coordinate |
p_0 |
double: prior probability of class 0 |
dfun_0 |
function(x): density of features of class 0 |
dfun_1 |
function(x): density of features of class 1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.