multigmmplot: Plot the Fit Results of aggregate 2-Component Gaussian...

Description Usage Arguments Examples

View source: R/multigmmplot.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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))

Example output

number of iterations= 4 
number of iterations= 9 
[[1]]

[[2]]

l1kdeconv documentation built on May 2, 2019, 10:16 a.m.