EM.R: EM Clustering

Description Usage Arguments Value Examples

View source: R/EM_function.R

Description

Implement EM algorithm to estimate the parameters and mixture proportions.

Usage

1
EM.R(x, N, it_num)

Arguments

x

sample from GMM

N

number of clusters

it_num

number of iterations

Value

the clustering parameters and proportions

Examples

1
2
3
4
5
## Not run: 
data_x = c(rnorm(500,0),rnorm(500,2));
M = EM.R(data_x, N = 2);M

## End(Not run)

Sirui522/SCtry2333 documentation built on Jan. 3, 2020, 12:11 a.m.