new_density_mvn: Construct a data frame with posterior class probabilities and...

Description Usage Arguments Value

View source: R/distributions.R

Description

Construct a data frame with posterior class probabilities and the optimal decision boundary over a grid on the feature space

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
new_density_mvn(
  mu_0,
  sigma_0,
  mu_1,
  sigma_1,
  p_0,
  x_min,
  x_max,
  y_min,
  y_max,
  delta = 0.05
)

Arguments

mu_0

vector: the mean vector of the first class

sigma_0

matrix: the 2x2 covariance matrix of the first class

mu_1

vector: the mean vector of the second class

sigma_1

matrix: the 2x2 covariance matrix of the second class

p_0

double: the prior probability of class 0

Value

a DensityFrame object


ryanholbrook/mlanimate documentation built on March 16, 2020, 4:34 p.m.