comp_dens function

Generic function of calculating the component densities of the mixture

Generic function of calculating the component densities of the mixture

comp_dens(m, y, log = FALSE)

Arguments

  • m: mixture of k components generated by normalmix() or unimix() or igmix()
  • y: is an n-vector of location
  • log: whether to use log-scale on densities

Returns

A k by n matrix of densities

  • Maintainer: Peter Carbonetto
  • License: GPL (>= 3)
  • Last published: 2023-08-21