multigmmsamedistribu: Fit Multi 2-Component Gaussian Mixture Model in same...

Description Usage Arguments Examples

View source: R/multigmmsamedistribu.R

Description

Fit Multi 2-Component Gaussian Mixture Model in same distribution with a Fixed Proportion

Usage

1
2
multigmmsamedistribu(x, lambda_lower = 0.1, lambda_upper = 1 - lambda_lower,
  sigma_lower = 0.01, debug = F)

Arguments

x

a list of numeric vector

lambda_lower

the lower bound of λ

lambda_upper

the upper bound of λ

sigma_lower

the lower bound of σ

debug

enable the debug mode to show par and fn

Examples

1
2
3
4
5
6
set.seed(0)
x1=c(rnorm(150, mean=0), rnorm(50, mean=10))
x2=c(rnorm(150, mean=20), rnorm(50, mean=40))
x3=c(rnorm(150, mean=30), rnorm(50, mean=60))
x=list(x1, x2, x3)
multigmmsamedistribu(x)

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