multigmmplot {l1kdeconv}R Documentation

Plot the Fit Results of aggregate 2-Component Gaussian Mixture Model

Description

Plot the Fit Results of aggregate 2-Component Gaussian Mixture Model

Usage

multigmmplot(x, fit_res, nbins = 15)

Arguments

x

a list of a numeric vector

fit_res

the result of AGMM

nbins

the number of bins per cluster

Examples

params=list(
 c(mu1=0, mu2=10, sd = 1)
 , c(mu1=10, mu2=20, sd = 1)
 )

set.seed(0)
x=lapply(
  params
  , function(v) {
    c(
      rnorm(100, mean=v[['mu1']], sd = v[['sd']])
      , rnorm(50, mean=v[['mu2']], sd = v[['sd']])
      )
  }
  )
multigmmplot(x, multigmmsamedistribu(x))

[Package l1kdeconv version 1.2.0 Index]